Software /
code /
prosody
Changeset
13064:b172db27ffed
tools/tb2err: Add some example usage in a comment
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Apr 2023 12:54:26 +0200 |
parents | 13063:414952def2d3 |
children | 13065:ab546c5977ed |
files | tools/tb2err |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/tb2err Sat Apr 08 12:53:19 2023 +0200 +++ b/tools/tb2err Sat Apr 08 12:54:26 2023 +0200 @@ -1,5 +1,7 @@ #!/usr/bin/env lua -- traceback to errors.err for vim -q +-- e.g. curl https://prosody.im/paste/xxx | tb2err > errors.err && vim -q + local path_sep = package.config:sub(1,1); for line in io.lines() do local src, err = line:match("%s*(%S+)(:%d+: .*)")