Created
March 24, 2018 07:27
-
-
Save mk-fg/c32c29e9bcf0bf2e82812fab36cdf8f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function run_my_mod() | |
... | |
end | |
function OnMsg.LoadGame() | |
xpcall(run_my_mod, function(err) | |
WaitCustomPopupNotification( | |
'ERROR when running mod', | |
string.format('----- Details:\n%s\n%s\n----- :end\n', err, debug.traceback()), | |
{'Oops!'}) | |
return false | |
end) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment