How can I remove "[string "..."]" from my error messages? #214
Answered
by
khvzak
squeezebunny
asked this question in
Q&A
-
I'm loading files as strings, then performing "lua.load()" on those strings. Not sure how else to do it. But I want to clean up my error messages a little more. I would like to present the scripts as just their filenames (which I've started doing with chunk.set_name()) but without the |
Beta Was this translation helpful? Give feedback.
Answered by
khvzak
Oct 16, 2022
Replies: 1 comment 1 reply
-
You can set chunk name to something like |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
squeezebunny
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can set chunk name to something like
@file.lua
to cut off[string "..."]
.Or just rewrite message using regular expressions / etc.