Use the msg function to report errors wherever possible.
[pspp] / src / ui / gui / page-file.c
index fdbda325f8ffdc0771cfb647a108a6124865874d..3d26b1d473bfeb98fb0ed2eb0b808f61c1fc1a4b 100644 (file)
@@ -52,7 +52,6 @@
 #include "ui/gui/psppire-scanf.h"
 #include "ui/syntax-gen.h"
 
-#include "gl/error.h"
 #include "gl/intprops.h"
 #include "gl/xalloc.h"
 
@@ -97,8 +96,8 @@ init_file (struct import_assistant *ia, GtkWindow *parent_window)
     struct line_reader *reader = line_reader_for_file (file->encoding, file->file_name, O_RDONLY);
     if (reader == NULL)
       {
-       msg (ME, _("Could not open `%s': %s"),
-            file->file_name, strerror (errno));
+       msg_error (errno, _("Could not open `%s'"),
+            file->file_name);
        return false;
       }