Skip to content

Commit aa0cd16

Browse files
committed
An error reloading the script file produces a message in the output window rather than a dialog box
1 parent a241059 commit aa0cd16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripting/scripting.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ if (m_ScriptEngine)
8383
} // end of try
8484
catch (CException * e)
8585
{
86-
e->ReportError ();
86+
char sMessage [1000];
87+
e->GetErrorMessage (sMessage, sizeof sMessage);
8788
e->Delete ();
89+
ColourNote ("red", "", sMessage);
8890
DisableScripting ();
8991
return true;
9092
}

0 commit comments

Comments
 (0)