finddir: Print more useful message in error case

This commit is contained in:
Ingo Weinhold 2013-04-24 15:10:55 +02:00
parent 3f85cfc132
commit f7d5bd46d7

View File

@ -249,9 +249,8 @@ main(int argc, char *argv[])
if (result == B_OK) {
printf("%s\n", buffer);
} else {
/* else what? */
/* this can not happen! */
fprintf(stderr, "Serious internal error; contact support\n");
fprintf(stderr, "Failed to get directory: %s\n", strerror(result));
return 1;
}
}