Fixed 'Error parsing arguments of text line' handling
authorshort <>
Mon, 24 Mar 2003 03:15:58 +0000 (03:15 +0000)
committershort <>
Mon, 24 Mar 2003 03:15:58 +0000 (03:15 +0000)
src/client/cmdline/cmd_shell.c

index b9293d4..e4727d0 100644 (file)
@@ -111,8 +111,9 @@ gchar *prompt;
                if (errint!=0) {
                        free(line_argv);
                        g_set_error(errp,CMDLINE_CMD_SHELL_ERROR,CMDLINE_CMD_SHELL_ERROR_LINE_PARSE_ARGUMENTS,
-                                       _("Error parsing arguments of text line: %s"),line);
-                       return;
+                                       _("Error '%s' parsing arguments of text line: %s"),poptStrerror(errint),line);
+                       err_cleanup(errp);
+                       continue;
                        }
 
                invoke_cmd(line_argc,line_argv);        /* errors catched inside */