Update Commands.cs

This commit is contained in:
Carver Harrison 2017-01-22 10:04:03 -08:00 committed by GitHub
parent 555cc1319a
commit 08a07cfb39

View file

@ -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