X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpage-file.c;h=10453b9f37e7dcd645b34ca90f277577b9636d6b;hb=e2da62d735c597afeef2e0e9b36e5a4a83d7da94;hp=fdbda325f8ffdc0771cfb647a108a6124865874d;hpb=c2d5b2ec4446a01578530645f4ff354b0a279338;p=pspp diff --git a/src/ui/gui/page-file.c b/src/ui/gui/page-file.c index fdbda325f8..10453b9f37 100644 --- a/src/ui/gui/page-file.c +++ b/src/ui/gui/page-file.c @@ -39,7 +39,6 @@ #include "libpspp/i18n.h" #include "libpspp/line-reader.h" #include "libpspp/message.h" -#include "ui/gui/checkbox-treeview.h" #include "ui/gui/dialog-common.h" #include "ui/gui/executor.h" #include "ui/gui/helper.h" @@ -52,7 +51,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 +95,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; }