Skip to content
Permalink
Browse files

Better command exception handling

  • Loading branch information...
pipe01 committed Feb 12, 2018
1 parent 490d2b4 commit 944e2124156afc7d3538857e77b7295166008f59
Showing with 5 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +3 −1 Console/IGConsole.cs
@@ -265,4 +265,6 @@ __pycache__/
Assembly-CSharp.dll
UnityEngine.dll
UnityEngine.*.dll
UnityEngine.xml
UnityEngine.*.xml
/copy.bat
@@ -482,7 +482,9 @@ private static void ExecuteCommand(string cmd)
}
catch (Exception e)
{
Log(LogType.ERROR, e.ToString());
Log(LogType.ERROR, "An internal error occurred while executing the command.");
MDebug.WriteLine("Command exception: '" + cmd + "'");
MDebug.WriteLine(e);
}
}
else if (!TryParseVariables(cmd.Trim()))

0 comments on commit 944e212

Please sign in to comment.
You can’t perform that action at this time.