Use the msg function to report errors wherever possible.
[pspp] / src / output / msglog.c
index 4042b460e7e9e2b701195240cc1341d41723621b..a3f195410406b70c6f18c00d57578d9cf6cf8fd6 100644 (file)
 #include "data/file-name.h"
 #include "data/settings.h"
 #include "libpspp/cast.h"
+#include "libpspp/message.h"
 #include "output/driver-provider.h"
 #include "output/message-item.h"
 
-#include "gl/error.h"
 #include "gl/fwriteerror.h"
 #include "gl/xalloc.h"
 
@@ -63,7 +63,7 @@ msglog_create (const char *file_name)
   file = fn_open (file_name, "w");
   if (file == NULL)
     {
-      error (0, errno, _("error opening output file `%s'"), file_name);
+      msg_error (errno, _("error opening output file `%s'"), file_name);
       return NULL;
     }