Merge pull request #3186 from orestisf1993/i3-msg

i3-msg: only print input + errorposition if they exist
This commit is contained in:
Ingo Bürk 2018-03-18 07:51:50 +01:00 committed by GitHub
commit e3e09119bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -95,8 +95,10 @@ static int reply_start_map_cb(void *params) {
static int reply_end_map_cb(void *params) {
if (!last_reply.success) {
if (last_reply.input) {
fprintf(stderr, "ERROR: Your command: %s\n", last_reply.input);
fprintf(stderr, "ERROR: %s\n", last_reply.errorposition);
}
fprintf(stderr, "ERROR: %s\n", last_reply.error);
}
return 1;