From fe0b8b9e2c729c64c6eddbed74e94660deef0201 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 8 Apr 2023 12:54:26 +0200 Subject: tools/tb2err: Add some example usage in a comment --- tools/tb2err | 2 ++ 1 file changed, 2 insertions(+) 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+: .*)") -- cgit v1.2.3