Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cfileio.c
Original file line number Diff line number Diff line change
Expand Up @@ -805,8 +805,10 @@ int ffopen(fitsfile **fptr, /* O - FITS file pointer */
FFUNLOCK;
if (*status > 0)
{
ffpmsg("failed to find or open the following file: (ffopen)");
ffpmsg(url);
const char *err = strerror(errno);
char msg[512];
snprintf(msg, sizeof msg, "(ffopen) %s: %s", url, err);
ffpmsg(msg);
return(*status);
}
}
Expand Down