Skip to content

Commit 958c40d

Browse files
authored
Update README.md
1 parent 16de38a commit 958c40d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,14 @@ open "https://www.google.com/search?q=flights%20from%20${1// /%20}%20to%20${2//
114114

115115
### Error Handling
116116

117-
If the script exits with a status code not equal to 0, Raycast interprets it as failed and shows a toast that the script failed to run.
117+
If the script exits with a status code not equal to 0, Raycast interprets it as failed and shows a toast that the script failed to run. If this script has inline or compact mode, the last line of the output will be used as an error message. Consider this example for bash script:
118+
```bash
119+
if ! [[ $value =~ $regex ]] ; then
120+
echo "Invalid value provided"
121+
exit 1
122+
else
123+
...
124+
```
118125
119126
### Login Shell and `$PATH`
120127

0 commit comments

Comments
 (0)