Skip to content
Snippets Groups Projects
Commit 4187b6df authored by rswindell's avatar rswindell
Browse files

Added more detailed list open failure message.

parent c5007d49
No related branches found
No related tags found
No related merge requests found
......@@ -311,6 +311,8 @@ void addlist(char *inpath, file_t f, uint dskip, uint sskip)
strcpy(listpath,inpath);
fexistcase(listpath);
if((stream=fnopen(&file,listpath,O_RDONLY))==NULL) {
fprintf(stderr,"Error %d (%s) opening %s\n"
,errno,strerror(errno),listpath);
sprintf(listpath,"%s%s",cur_altpath ? scfg.altpath[cur_altpath-1]
: scfg.dir[f.dir]->path,inpath);
if((stream=fnopen(&file,listpath,O_RDONLY))==NULL) {
......
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