Skip to content

Commit

Permalink
Update Satapi.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte authored Dec 30, 2017
1 parent 75320a7 commit 458e465
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions source/Cosmos.HAL2/BlockDevice/Ports/Satapi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ public SATAPI(PortRegisters aSATAPIPort)
// 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");

Expand Down

0 comments on commit 458e465

Please sign in to comment.