Follow-up Comment #2, patch #1526 (project freeciv):
Attaching updated patch.
The assumption in the first patch was wrong (callbacks are not always defined
in script.code, but also in default.lua etc!).
This patch does only the "use code string when it is available" part, so some
cases are improved with code listings on error, but not the case where we have
an error inside callback execution. That can be solved using a more complex
solution in the future.
Additional Item Attachment:
File name: 0001-Print-code-listing-on-error-when-possible-in-script_.patch
Reply to this item at:
Meddelandet skickades via/av Gna!
Freeciv-dev mailing list