Update Satapi.cs

This commit is contained in:
KingLuigi4932 2017-12-31 02:35:14 +03:00 committed by GitHub
parent 75320a79e7
commit 458e465626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,11 +23,7 @@ namespace Cosmos.HAL.BlockDevice.Ports
// Check if it is really a SATAPI Port!
if (aSATAPIPort.mPortType != PortType.SATAPI || (aSATAPIPort.CMD & (1U << 24)) == 0)
{
Console.ForegroundColor = ConsoleColor.DarkRed;
Console.Write("\n[Error]");
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine($" 0:{aSATAPIPort.mPortNumber} is not a SATAPI port!");
return;
throw new Exception($"SATAPI Error: 0:{mPortNumber} is not SATAPI port!");
}
mSATAPIDebugger.Send("SATAPI Constructor");