Improved the output in case the command failed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11591 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -102,7 +102,8 @@ main(int argc, const char *const *argv)
|
|||||||
|
|
||||||
// evaluate result
|
// evaluate result
|
||||||
if (reply.error != B_OK) {
|
if (reply.error != B_OK) {
|
||||||
fprintf(stderr, "Command failed: %lx\n", error);
|
fprintf(stderr, "Command failed: %s\n", strerror(reply.error));
|
||||||
|
fprintf(stderr, "Command was:\n %s\n", message.command);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user