diff options
| author | Carver Harrison <[email protected]> | 2017-01-22 10:04:03 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-01-22 10:04:03 -0800 |
| commit | 08a07cfb3996860ad5906861868ee8ea7c576077 (patch) | |
| tree | b3724e0a15e55f663c2eb1f2d57d6995386bc549 /ShiftOS_TheReturn | |
| parent | 555cc1319aae4b6e7cf9421f63dee9ffc547cbd5 (diff) | |
| download | shiftos_thereturn-08a07cfb3996860ad5906861868ee8ea7c576077.tar.gz shiftos_thereturn-08a07cfb3996860ad5906861868ee8ea7c576077.tar.bz2 shiftos_thereturn-08a07cfb3996860ad5906861868ee8ea7c576077.zip | |
Update Commands.cs
Diffstat (limited to 'ShiftOS_TheReturn')
| -rw-r--r-- | ShiftOS_TheReturn/Commands.cs | 13 |
1 files 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 |
