Sun, 06 Aug 2023 14:32:25 +0300
Preliminary breadcrumb support
2 | 1 | |
7
038275cd92ed
Convert module stuff to lua 5.3
Tuomo Valkonen <tuomov@iki.fi>
parents:
2
diff
changeset
|
2 | --@module err |
038275cd92ed
Convert module stuff to lua 5.3
Tuomo Valkonen <tuomov@iki.fi>
parents:
2
diff
changeset
|
3 | local err={} |
2 | 4 | |
7
038275cd92ed
Convert module stuff to lua 5.3
Tuomo Valkonen <tuomov@iki.fi>
parents:
2
diff
changeset
|
5 | function err.file_pos(f, pos, e) |
2 | 6 | error(string.format("%s:%d: %s", f, pos, e)) |
7 | end | |
8 | ||
7
038275cd92ed
Convert module stuff to lua 5.3
Tuomo Valkonen <tuomov@iki.fi>
parents:
2
diff
changeset
|
9 | function err.file(f, e) |
2 | 10 | error(string.format("%s %s", f, e)) |
11 | end | |
12 | ||
7
038275cd92ed
Convert module stuff to lua 5.3
Tuomo Valkonen <tuomov@iki.fi>
parents:
2
diff
changeset
|
13 | return err |