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:
Ingo Weinhold 2005-03-06 00:13:39 +00:00
parent a34fce7356
commit 6ff9fee56f

View File

@ -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);
}