Commit 41f9c231 authored by JoyJ's avatar JoyJ Committed by mercury233

improve parsing exception behavior

parent 11b41db7
...@@ -259,7 +259,11 @@ namespace ImgGen ...@@ -259,7 +259,11 @@ namespace ImgGen
} }
catch (Exception e) catch (Exception e)
{ {
Console.WriteLine("Error prasing {0} {1}", data.code, e); #if DEBUG
Console.WriteLine($"Error parsing [{data.code}] : {e.Message}");
#else
Console.WriteLine($"Error parsing [{data.code}] : {e}");
#endif
return; return;
} }
if (data.isType(Type.TYPE_PENDULUM)) if (data.isType(Type.TYPE_PENDULUM))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment