aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael VanOverbeek <[email protected]>2017-01-22 14:26:39 -0500
committerGitHub <[email protected]>2017-01-22 14:26:39 -0500
commit28a8eb7a6a62f3de9515d22dc1bb066585e64655 (patch)
treede5ca2db172671f3a89891828cb039d150cbdbd5
parent8dd75653ff98c54de9baef9c8907d36503a84e92 (diff)
parentaaf92f6eb5d54f12636202218dfce3ba44c09063 (diff)
downloadshiftos_thereturn-28a8eb7a6a62f3de9515d22dc1bb066585e64655.tar.gz
shiftos_thereturn-28a8eb7a6a62f3de9515d22dc1bb066585e64655.tar.bz2
shiftos_thereturn-28a8eb7a6a62f3de9515d22dc1bb066585e64655.zip
Merge pull request #42 from carverh/patch-26
whats the point of thowing something if you are just going to catch it - Michael 2016
-rw-r--r--ShiftOS_TheReturn/Commands.cs11
1 files changed, 2 insertions, 9 deletions
diff --git a/ShiftOS_TheReturn/Commands.cs b/ShiftOS_TheReturn/Commands.cs
index 9aae1f6..ed4d0e4 100644
--- a/ShiftOS_TheReturn/Commands.cs
+++ b/ShiftOS_TheReturn/Commands.cs
@@ -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