diff options
author | Kim Alvefur <zash@zash.se> | 2023-04-08 12:54:26 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-04-08 12:54:26 +0200 |
commit | fe0b8b9e2c729c64c6eddbed74e94660deef0201 (patch) | |
tree | b9faba315ac13f2e33e50f19ba33c8a1cbb11b8a | |
parent | 5a8fbd06a8b256526e5b1e56b32844fd94eb1c1a (diff) | |
download | prosody-fe0b8b9e2c729c64c6eddbed74e94660deef0201.tar.gz prosody-fe0b8b9e2c729c64c6eddbed74e94660deef0201.zip |
tools/tb2err: Add some example usage in a comment
-rwxr-xr-x | tools/tb2err | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/tb2err b/tools/tb2err index 8399e630..09a55d5e 100755 --- a/tools/tb2err +++ b/tools/tb2err @@ -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+: .*)") |