Skip to content
Snippets Groups Projects
Commit 381df6b4 authored by rswindell's avatar rswindell
Browse files

Log the errno description text along with the number when failing to

create a directory.
parent 1b92da55
No related branches found
No related tags found
No related merge requests found
......@@ -331,7 +331,7 @@ BOOL md(char *inpath)
if(!isdir(path)) {
/* lprintf("Creating directory: %s",path); */
if(mkpath(path)) {
lprintf(LOG_WARNING,"!ERROR %d creating directory: %s",errno,path);
lprintf(LOG_WARNING,"!ERROR %d (%s) creating directory: %s", errno, strerror(errno), path);
return(FALSE);
}
}
......
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