Added error message to --die in mtr

This commit is contained in:
Monty 2020-03-30 14:44:54 +03:00
parent 478ec7750a
commit 0126169e08

View file

@ -9748,7 +9748,8 @@ int main(int argc, char **argv)
break;
case Q_DIE:
/* Abort test with error code and error message */
die("%s", command->first_argument);
die("%s", command->first_argument[0] ? command->first_argument :
"Explicit --die command executed");
break;
case Q_EXIT:
/* Stop processing any more commands */