monitor: Print error message string for dump requests

This commit is contained in:
Marcel Holtmann 2014-08-10 10:38:14 -07:00
parent bbca35c57b
commit c80877808f
1 changed files with 5 additions and 1 deletions

View File

@ -1170,7 +1170,11 @@ static void print_message(const struct timeval *tv, enum msg_type type,
print_field("Status: %s (%d)", strerror(status), status);
break;
case MSG_COMPLETE:
print_field("Status: %d", status);
if (status < 0)
print_field("Status: %s (%d)",
strerror(-status), -status);
else
print_field("Status: %d", status);
break;
}
}