mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
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:
commit
28a8eb7a6a
1 changed files with 2 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue