]> git.draconx.ca Git - cdecl99.git/blobdiff - src/execute.gperf
Improve cdecl99 error output.
[cdecl99.git] / src / execute.gperf
index 5f6740e40c7d2ba9bd231f5389f618163592d7b9..b1e7d5931ee2e4746c3c04bf80050cb1ab6583c6 100644 (file)
@@ -94,8 +94,7 @@ int run_command(const char *line, int interactive)
 
        c = in_word_set(cmd, arg-cmd);
        if (!c) {
-               fprintf(stderr, _("unknown command %.*s\n"),
-                               (int)(arg-cmd), cmd);
+               print_error(_("unknown command %.*s"), (int)(arg-cmd), cmd);
                if (interactive) {
                        fprintf(stderr, "%s\n",
                                _("Try \"help\" for a list of possible commands."));