From a8a239e2f1ca6236c2b8f7cebf0cc37890e77ec0 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Sun, 4 Aug 2019 02:02:13 -0400 Subject: swaymsg: return 2 for sway errors This mirrors a change in i3 4.17 that returns 2 for errors from sway, including invalid command, command failed, and invalid subscription requests --- swaymsg/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swaymsg/main.c') diff --git a/swaymsg/main.c b/swaymsg/main.c index f288d4a0..a018a68e 100644 --- a/swaymsg/main.c +++ b/swaymsg/main.c @@ -475,7 +475,7 @@ int main(int argc, char **argv) { ret = 1; } else { if (!success(obj, true)) { - ret = 1; + ret = 2; } if (!quiet && (type != IPC_SUBSCRIBE || ret != 0)) { if (raw) { -- cgit v1.2.3