From: Eric Bollengier Date: Wed, 17 Aug 2011 07:48:26 +0000 (+0200) Subject: Fix error message with bad dot commands X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4f786442cecdbfd1782bbc190f056eef897894c1;p=bacula%2Fbacula Fix error message with bad dot commands --- diff --git a/bacula/src/dird/ua_dotcmds.c b/bacula/src/dird/ua_dotcmds.c index 086409e2f7..887387e458 100644 --- a/bacula/src/dird/ua_dotcmds.c +++ b/bacula/src/dird/ua_dotcmds.c @@ -168,8 +168,7 @@ bool do_a_dot_command(UAContext *ua) } } if (!found) { - pm_strcat(user->msg, _(": is an invalid command.\n")); - ua->error_msg("%s", user->msg); + ua->error_msg("%s%s", ua->argk[0], _(": is an invalid command.\n")); ok = false; } return ok;