aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway-ipc.7.scd
diff options
context:
space:
mode:
authorLibravatar Rex Hackbro <rex.hackbro@mailbox.org>2020-08-03 00:30:35 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2020-11-21 11:42:29 +0100
commitf1afef5533cac9c5d03e5fb372226e48ac1d8547 (patch)
tree665815aa9d1ada40ae8a69d1526b13f70c85b4fc /sway/sway-ipc.7.scd
parentSmall wording change to README.ja.md (diff)
downloadsway-f1afef5533cac9c5d03e5fb372226e48ac1d8547.tar.gz
sway-f1afef5533cac9c5d03e5fb372226e48ac1d8547.tar.zst
sway-f1afef5533cac9c5d03e5fb372226e48ac1d8547.zip
document parse_error
Diffstat (limited to 'sway/sway-ipc.7.scd')
-rw-r--r--sway/sway-ipc.7.scd7
1 files changed, 5 insertions, 2 deletions
diff --git a/sway/sway-ipc.7.scd b/sway/sway-ipc.7.scd
index 018080fe..1b855959 100644
--- a/sway/sway-ipc.7.scd
+++ b/sway/sway-ipc.7.scd
@@ -93,8 +93,10 @@ Parses and runs the payload as sway commands
93*REPLY*++ 93*REPLY*++
94An array of objects corresponding to each command that was parsed. Each object 94An array of objects corresponding to each command that was parsed. Each object
95has the property _success_, which is a boolean indicating whether the command 95has the property _success_, which is a boolean indicating whether the command
96was successful. The object may also contain the property _error_, which is a 96was successful. The object may also contain the properties _error_ and _parse\_error_.
97human readable error message. 97The _error_ property is a human readable error message while _parse\_error_ is a
98boolean indicating whether the reason the command failed was because the command
99was unknown or not able to be parsed.
98 100
99*Example Reply:* 101*Example Reply:*
100``` 102```
@@ -104,6 +106,7 @@ human readable error message.
104 }, 106 },
105 { 107 {
106 "success": false, 108 "success": false,
109 "parse_error": true,
107 "error": "Invalid/unknown command" 110 "error": "Invalid/unknown command"
108 } 111 }
109] 112]