Skip to content

Commit

Permalink
An error reloading the script file produces a message in the output w…
Browse files Browse the repository at this point in the history
…indow rather than a dialog box
  • Loading branch information
nickgammon committed Sep 22, 2016
1 parent a241059 commit aa0cd16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripting/scripting.cpp
Expand Up @@ -83,8 +83,10 @@ if (m_ScriptEngine)
} // end of try
catch (CException * e)
{
e->ReportError ();
char sMessage [1000];
e->GetErrorMessage (sMessage, sizeof sMessage);
e->Delete ();
ColourNote ("red", "", sMessage);
DisableScripting ();
return true;
}
Expand Down

0 comments on commit aa0cd16

Please sign in to comment.