Show more specific error message in pregap calculation.

This commit is contained in:
2020-02-04 00:16:56 +00:00
parent 6272289745
commit 4d0fab130e

View File

@@ -371,16 +371,19 @@ namespace DiscImageChef.Core.Devices.Dumping
if(retries == 10) if(retries == 10)
{ {
dumpLog?.WriteLine($"Could not get correct subchannel for sector {lba}");
updateStatus?.Invoke($"Could not get correct subchannel for sector {lba}");
if(sense) if(sense)
{ {
dumpLog?.WriteLine($"Could not read subchannel for sector {lba}");
updateStatus?.Invoke($"Could not read subchannel for sector {lba}");
lba++; lba++;
forward = true; forward = true;
continue; continue;
} }
dumpLog?.WriteLine($"Could not get correct subchannel for sector {lba}");
updateStatus?.Invoke($"Could not get correct subchannel for sector {lba}");
} }
if(subBuf.All(b => b == 0)) if(subBuf.All(b => b == 0))