Merge pull request #42 from carverh/patch-26

whats the point of thowing something if you are just going to catch it - Michael 2016
This commit is contained in:
Michael VanOverbeek 2017-01-22 14:26:39 -05:00 committed by GitHub
commit 28a8eb7a6a

View file

@ -292,15 +292,8 @@ namespace ShiftOS.Engine
[Command("crash")]
public static bool CrashInstantly()
{
try
{
throw new Exception("ShiftOS was sent a command to forcefully crash.");
}
catch (Exception e)
{
CrashHandler.Start(e);
return true;
}
CrashHandler.Start(new Exception("ShiftOS was sent a command to forcefully crash."));
return true;
}
}
#endif