scanner: Add more vebose scan error message.
Print the errno in addition to the generic error message.
This commit is contained in:
parent
c160a8c8fd
commit
e4dab2455b
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user