document parse_error
This commit is contained in:
parent
f5ca4c26ac
commit
f1afef5533
|
@ -93,8 +93,10 @@ Parses and runs the payload as sway commands
|
||||||
*REPLY*++
|
*REPLY*++
|
||||||
An array of objects corresponding to each command that was parsed. Each object
|
An array of objects corresponding to each command that was parsed. Each object
|
||||||
has the property _success_, which is a boolean indicating whether the command
|
has the property _success_, which is a boolean indicating whether the command
|
||||||
was successful. The object may also contain the property _error_, which is a
|
was successful. The object may also contain the properties _error_ and _parse\_error_.
|
||||||
human readable error message.
|
The _error_ property is a human readable error message while _parse\_error_ is a
|
||||||
|
boolean indicating whether the reason the command failed was because the command
|
||||||
|
was unknown or not able to be parsed.
|
||||||
|
|
||||||
*Example Reply:*
|
*Example Reply:*
|
||||||
```
|
```
|
||||||
|
@ -104,6 +106,7 @@ human readable error message.
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"success": false,
|
"success": false,
|
||||||
|
"parse_error": true,
|
||||||
"error": "Invalid/unknown command"
|
"error": "Invalid/unknown command"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue