mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-04-20 02:30:24 +00:00
Update Commands.cs
This commit is contained in:
parent
555cc1319a
commit
08a07cfb39
1 changed files with 3 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue