aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tb2err
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-04-08 12:54:26 +0200
committerKim Alvefur <zash@zash.se>2023-04-08 12:54:26 +0200
commitfe0b8b9e2c729c64c6eddbed74e94660deef0201 (patch)
treeb9faba315ac13f2e33e50f19ba33c8a1cbb11b8a /tools/tb2err
parent5a8fbd06a8b256526e5b1e56b32844fd94eb1c1a (diff)
downloadprosody-fe0b8b9e2c729c64c6eddbed74e94660deef0201.tar.gz
prosody-fe0b8b9e2c729c64c6eddbed74e94660deef0201.zip
tools/tb2err: Add some example usage in a comment
Diffstat (limited to 'tools/tb2err')
-rwxr-xr-xtools/tb2err2
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+: .*)")