terminal UI: Fix circumstances when errors should be logged to stdout.
[pspp] / src / ui / terminal / terminal-opts.c
index a0f6072b521b65698ee4d0c6bb33fee8da2f4b4e..d1296a36252ac449734bb6bd15875a23febd3e3f 100644 (file)
@@ -123,7 +123,7 @@ parse_output_option (struct terminal_opts *to, const char *option)
   key = xmemdup0 (option, equals - option);
   if (string_map_contains (&to->options, key))
     {
-      error (0, 0, _("%s: output option %s specified more than twice"), key);
+      error (0, 0, _("%s: output option specified more than once"), key);
       free (key);
       return;
     }
@@ -335,7 +335,7 @@ terminal_opts_done (struct terminal_opts *to, int argc, char *argv[])
       register_output_driver (to);
     }
 
-  if (to->has_terminal_driver && !to->has_error_file)
+  if (!to->has_terminal_driver && !to->has_error_file)
     msglog_create ("-");
 
   string_map_destroy (&to->options);