mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 19:53:34 +08:00
zenoh: Improve error message when there are no scouting results
This commit is contained in:
committed by
Beat Küng
parent
85cab5a4db
commit
a24b3a121c
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user