mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-05 17:58:53 +08:00
posix main: tell us which command failed
This commit is contained in:
@@ -114,7 +114,7 @@ static void run_cmd(const vector<string> &appargs, bool exit_on_fail)
|
||||
int retval = apps[command](i, (char **)arg);
|
||||
|
||||
if (retval) {
|
||||
cout << "Command failed, returned " << retval << endl;
|
||||
cout << "Command '" << command << "' failed, returned " << retval << endl;
|
||||
|
||||
if (exit_on_fail && retval) {
|
||||
exit(retval);
|
||||
|
||||
Reference in New Issue
Block a user