maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #12173
Re: d4d332d196d: Added error message to --die in mtr
Hi, Michael!
On Apr 13, Michael Widenius wrote:
> revision-id: d4d332d196d (mariadb-10.5.2-119-gd4d332d196d)
> parent(s): c7ab676192d
> author: Michael Widenius <monty@xxxxxxxxxxx>
> committer: Michael Widenius <monty@xxxxxxxxxxx>
> timestamp: 2020-04-09 01:37:01 +0300
> message:
>
> Added error message to --die in mtr
>
> ---
> client/mysqltest.cc | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/client/mysqltest.cc b/client/mysqltest.cc
> index 3e08d3f62d7..f593d8e949e 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 :
> + "Explicite --die command executed");
typo. "Explicit"
> break;
> case Q_EXIT:
> /* Stop processing any more commands */
Regards,
Sergei
VP of MariaDB Server Engineering
and security@xxxxxxxxxxx