aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/Commands.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS_TheReturn/Commands.cs')
-rw-r--r--ShiftOS_TheReturn/Commands.cs13
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