diff options
author | Brian Ashworth <[email protected]> | 2019-08-04 02:02:13 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2019-08-06 11:31:39 +0900 |
commit | a8a239e2f1ca6236c2b8f7cebf0cc37890e77ec0 (patch) | |
tree | 31206baa6238542c53d6c6b51e08d572caea8fed /swaymsg/main.c | |
parent | 56b5ad777cd033fe96af0cec7e89c21af766e8a4 (diff) |
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
Diffstat (limited to 'swaymsg/main.c')
-rw-r--r-- | swaymsg/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |