summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-03-30 14:44:54 +0300
committerMonty <monty@mariadb.org>2020-04-19 17:33:51 +0300
commit0126169e08c2924a833ea0ccdbfcb19703db85b5 (patch)
treec3dd11084ad91bdbd9251ca54e96222120d2b7ab
parent478ec7750aaddc2e5aedbad46d93f4c1612ba84e (diff)
downloadmariadb-git-0126169e08c2924a833ea0ccdbfcb19703db85b5.tar.gz
Added error message to --die in mtr
-rw-r--r--client/mysqltest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index 3e08d3f62d7..bc7247e09a1 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -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 */