Skip to content

Commit 0126169

Browse files
committed
Added error message to --die in mtr
1 parent 478ec77 commit 0126169

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/mysqltest.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9748,7 +9748,8 @@ int main(int argc, char **argv)
97489748
break;
97499749
case Q_DIE:
97509750
/* Abort test with error code and error message */
9751-
die("%s", command->first_argument);
9751+
die("%s", command->first_argument[0] ? command->first_argument :
9752+
"Explicit --die command executed");
97529753
break;
97539754
case Q_EXIT:
97549755
/* Stop processing any more commands */

0 commit comments

Comments
 (0)