Commit graph

5 commits

Author SHA1 Message Date
Kim Alvefur
3d4d094026 tools/tb2err: Trim trailing whitespace 2023-04-08 12:56:13 +02:00
Kim Alvefur
bb26331c4b tools/tb2err: Rewrite prosody-modules paths to ../modules
This assumes you have community modules in ../modules as I do
2023-04-08 12:55:08 +02:00
Kim Alvefur
fe0b8b9e2c tools/tb2err: Add some example usage in a comment 2023-04-08 12:54:26 +02:00
Kim Alvefur
5a8fbd06a8 tools/tb2err: Drop use of lua-any since it should run fine on any Lua
Dependencies--; \o/
2023-04-08 12:53:19 +02:00
Kim Alvefur
4cb9c49d95 tools/tb2err: Formats Lua traceback in errors.err format
Manually opening to the files and line numbers from a Lua traceback is
tedious. This tool converts tracebacks into a format that many compilers
and such tools use, which is also compatible with Vim (and possibly
other editors).

Thus if someone sends you a pastebin link with a traceback, a command
like the following gets you right to the relevant lines:

curl paste.example/abc123.txt | tb2err > errors.err; vim -q
2020-10-28 22:42:43 +01:00