Fixed Crashes related to attempt to concatenate local [...] (a nil value) #13
Art3myy
started this conversation in
Show and tell
Replies: 1 comment
-
seems that I have broken a function call during fixing 'nil' issue :( fixed it now |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Solution: Added a check immediately after queryChatGPT in dictdialog.lua to verify the result (answer) is not nil and not an error string. If the check fails, an error message is now displayed to the user instead of crashing.
Solution: Modified the context retrieval logic in dictdialog.lua to use or "" when assigning prev_context and next_context. This ensures they are always strings (even if empty), preventing the concatenation error when context is legitimately missing.
dictdialog.lua.txt
Beta Was this translation helpful? Give feedback.
All reactions