]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix error message with bad dot commands
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 17 Aug 2011 07:48:26 +0000 (09:48 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:00 +0000 (14:50 +0200)
bacula/src/dird/ua_dotcmds.c

index 086409e2f7a65d666deafea08cd058c137f7c557..887387e4580bf56814023c8be92f25d4fbbf86c3 100644 (file)
@@ -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;