Improve error message when temporary file cannot be created.
[pspp-builds.git] / src / language / stats / flip.c
index 866ea2f742599c4eedf8699ebf2b2f4e45f89f29..8b7e2ffec86d10d5c7774299b617fa70ecef5dbd 100644 (file)
@@ -299,7 +299,8 @@ flip_sink_create (struct dataset *ds, struct flip_pgm *flip)
   flip->file = pool_tmpfile (flip->pool);
   if (flip->file == NULL)
     {
-      msg (SE, _("Could not create temporary file for FLIP."));
+      msg (SE, _("Could not create temporary file for FLIP: %s."),
+           strerror (errno));
       return NULL;
     }