zenoh: Improve error message when there are no scouting results

This commit is contained in:
Peter van der Perk
2025-08-22 08:22:59 +02:00
committed by Beat Küng
parent 85cab5a4db
commit a24b3a121c
+7 -1
View File
@@ -126,7 +126,13 @@ void ZENOH::run()
ret = z_open(&s, z_move(config), NULL);
if (ret < 0) {
PX4_ERR("Unable to open session, ret: %d", ret);
if (ret == _Z_ERR_SCOUT_NO_RESULTS) {
PX4_ERR("Unable to open session, scout no results");
} else {
PX4_ERR("Unable to open session, ret: %d", ret);
}
return;
}