projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support moments
[pspp]
/
src
/
language
/
stats
/
flip.c
diff --git
a/src/language/stats/flip.c
b/src/language/stats/flip.c
index c3f2439fe9ac0dc9968fd4eddcd45913d9ea65f2..8b7e2ffec86d10d5c7774299b617fa70ecef5dbd 100644
(file)
--- a/
src/language/stats/flip.c
+++ b/
src/language/stats/flip.c
@@
-299,7
+299,8
@@
flip_sink_create (struct dataset *ds, struct flip_pgm *flip)
flip->file = pool_tmpfile (flip->pool);
if (flip->file == NULL)
{
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;
}
return NULL;
}
@@
-448,7
+449,10
@@
flip_file (struct flip_pgm *flip)
if (read_cases != fread (input_buf, case_bytes, read_cases, input_file))
{
if (read_cases != fread (input_buf, case_bytes, read_cases, input_file))
{
- msg (SE, _("Error reading FLIP file: %s."), strerror (errno));
+ if (ferror (input_file))
+ msg (SE, _("Error reading FLIP file: %s."), strerror (errno));
+ else
+ msg (SE, _("Unexpected end of file reading FLIP file."));
return false;
}
return false;
}