mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
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
This commit is contained in:
parent
56b5ad777c
commit
a8a239e2f1
2 changed files with 14 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue