From 08a07cfb3996860ad5906861868ee8ea7c576077 Mon Sep 17 00:00:00 2001 From: Carver Harrison Date: Sun, 22 Jan 2017 10:04:03 -0800 Subject: [PATCH] Update Commands.cs --- ShiftOS_TheReturn/Commands.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/ShiftOS_TheReturn/Commands.cs b/ShiftOS_TheReturn/Commands.cs index 9aae1f6..23017e0 100644 --- a/ShiftOS_TheReturn/Commands.cs +++ b/ShiftOS_TheReturn/Commands.cs @@ -127,7 +127,7 @@ namespace ShiftOS.Engine } catch (Exception ex) { - Console.WriteLine("{ERROR}: " + ex.Message); + Console.WriteLine("{ERROR}: " + ex.Exception); } return true; } @@ -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