Merge pull request #3186 from orestisf1993/i3-msg
i3-msg: only print input + errorposition if they exist
This commit is contained in:
commit
e3e09119bf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue