Skip to content
Snippets Groups Projects
Commit eed532de authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Improve error message.

parent 8675c635
No related branches found
No related tags found
1 merge request!11Consolidation with CDI-PIO (1.8.x)
......@@ -50,8 +50,11 @@ initBFiledataP(struct fileFunnelStdio *bfp,
}
}
if (( bfp->fp = fopen ( filename, "w" )) == NULL )
xabort("Failed to open %s", bfp->name);
if (( bfp->fp = fopen ( filename, "w" )) == NULL ) {
int fopen_errno = errno;
xabort("Failed to open %s\nerrno=%d: %s", bfp->name, fopen_errno,
strerror(fopen_errno));
}
struct dBuffer *db = bfp->db = Malloc(sizeof (*db) * nc);
for (size_t i = 0; i < nc; ++i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment