Skip to content

Commit f075ab7

Browse files
committed
Document
1 parent 485c731 commit f075ab7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docs/runtime-errors.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ lists them and their runtime properties.
66
On Erlang runtime errors are Erlang maps thrown with `erlang:error/1`, having at
77
least these properties:
88

9-
| Key | Type | Value |
10-
| --- | ---- | ----- |
11-
| gleam_error | Atom | See individual errors |
12-
| message | String | See individual errors |
13-
| module | String | The module the error occurred in |
14-
| function | String | The function the error occurred in |
15-
| line | Int | The line number the error occurred on |
9+
| Key | Type | Value |
10+
| --- | ---- | ----- |
11+
| gleam_error | Atom | See individual errors |
12+
| message | String | See individual errors |
13+
| file | String | A path to the original source file location |
14+
| module | String | The module the error occurred in |
15+
| function | String | The function the error occurred in |
16+
| line | Int | The line number the error occurred on |
1617

1718
On JavaScript runtime errors are instances of the JavaScript `Error` class,
1819
having at least these properties added to them:

0 commit comments

Comments
 (0)