finddir: Print more useful message in error case
This commit is contained in:
+2
-3
@@ -249,9 +249,8 @@ main(int argc, char *argv[])
|
|||||||
if (result == B_OK) {
|
if (result == B_OK) {
|
||||||
printf("%s\n", buffer);
|
printf("%s\n", buffer);
|
||||||
} else {
|
} else {
|
||||||
/* else what? */
|
fprintf(stderr, "Failed to get directory: %s\n", strerror(result));
|
||||||
/* this can not happen! */
|
return 1;
|
||||||
fprintf(stderr, "Serious internal error; contact support\n");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user