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:
parent
a34fce7356
commit
6ff9fee56f
@ -102,7 +102,8 @@ main(int argc, const char *const *argv)
|
||||
|
||||
// evaluate result
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user