X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fmsglog.c;h=a3f195410406b70c6f18c00d57578d9cf6cf8fd6;hb=f8ea4bf58da012da87a34d4d0d81ce2874a7c2f3;hp=d5c68069a6f9cbe1aec0d80bc5cb3c1b6694fc46;hpb=ddb7b52128d8f1f54d9632dc3a15c7869e0fbcce;p=pspp diff --git a/src/output/msglog.c b/src/output/msglog.c index d5c68069a6..a3f1954104 100644 --- a/src/output/msglog.c +++ b/src/output/msglog.c @@ -26,10 +26,10 @@ #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, _("%s: open failed"), file_name); + msg_error (errno, _("error opening output file `%s'"), file_name); return NULL; }