scanner: Add more vebose scan error message.

Print the errno in addition to the generic error message.
This commit is contained in:
Justin Maggard 2015-09-10 11:57:31 -07:00
parent c160a8c8fd
commit e4dab2455b

View File

@ -749,11 +749,13 @@ ScanDirectory(const char *dir, const char *parent, media_types dir_types)
break; break;
default: default:
n = -1; n = -1;
errno = EINVAL;
break; break;
} }
if( n < 0 ) if( n < 0 )
{ {
DPRINTF(E_WARN, L_SCANNER, "Error scanning %s\n", dir); DPRINTF(E_WARN, L_SCANNER, "Error scanning %s [%s]\n",
dir, strerror(errno));
return; return;
} }