Include strerror(errno) in stat debug output

This commit is contained in:
Alex Young
2012-07-20 09:51:53 +01:00
parent b0f1a027c6
commit 77f4ac29c6

View File

@@ -326,7 +326,7 @@ void flexnbd_mark_incomplete( struct flexnbd * flexnbd )
}
else if ( ENOENT != errno ) {
/* Can't tell if it's there or not, weirdness. */
fatal( "Unable to stat %s", filename );
fatal( "Unable to stat %s: %s", filename, strerror( errno ) );
}
else { /* definitely not there. NOP. */ }