Skip to content

Commit

Permalink
Fix error.{kind,message} documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Dec 7, 2022
1 parent 36b8b82 commit da5b8cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/content/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -1180,14 +1180,14 @@ x =
```

The name and message associated to an error can respectively be retrieved using
the functions `error.kind` and `error.message`, e.g. we can write
the error `kind` and `message` attributes, e.g. we can write

```liquidsoap
try
...
catch err do
print("the error #{error.kind(err)} was raised")
print("the error message is #{error.message(err)}")
print("the error #{err.kind} was raised")
print("the error message is #{err.message}")
end
```

Expand Down

0 comments on commit da5b8cf

Please sign in to comment.