This commit is contained in:
Evil Factory
2021-02-12 19:26:18 -03:00
parent 05ea1d2a3a
commit ed2091a4ab
7 changed files with 116 additions and 19 deletions
@@ -29,7 +29,22 @@ namespace Barotrauma
{
Console.WriteLine(s);
script.DoFile(s); // i hate windows
try
{
script.DoFile(s); // i hate windows
}
catch (Exception e)
{
if (e is InterpreterException)
{
Console.WriteLine(((InterpreterException)e).DecoratedMessage);
}
else
{
Console.WriteLine(e.ToString());
}
}
}
}