aboutsummaryrefslogtreecommitdiff
path: root/swaymsg
diff options
context:
space:
mode:
authorJason Nader <jason.nader@protonmail.com>2021-10-18 18:45:40 +0900
committerSimon Ser <contact@emersion.fr>2021-10-18 14:20:24 +0200
commitdb70f6496c7be38edff5d5594d1fb5a7895a23bc (patch)
tree4f2922ab9e13ef5f2f5017ee15f71b1868bec5fe /swaymsg
parent55cd8abd76cf6a31ca7edf67473c048f90f99140 (diff)
swaymsg: fix misplaced return value
Diffstat (limited to 'swaymsg')
-rw-r--r--swaymsg/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c
index c3468a16..5f7854f5 100644
--- a/swaymsg/main.c
+++ b/swaymsg/main.c
@@ -528,8 +528,8 @@ int main(int argc, char **argv) {
if (!quiet) {
sway_log(SWAY_ERROR, "failed to parse payload as json: %s",
json_tokener_error_desc(err));
- ret = 1;
}
+ ret = 1;
break;
} else if (quiet) {
json_object_put(obj);