From 4d0fab130eb1529aa8d4b40fbd4e632dc5b6ce2e Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 4 Feb 2020 00:16:56 +0000 Subject: [PATCH] Show more specific error message in pregap calculation. --- DiscImageChef.Core/Devices/Dumping/CompactDisc/Pregap.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/DiscImageChef.Core/Devices/Dumping/CompactDisc/Pregap.cs b/DiscImageChef.Core/Devices/Dumping/CompactDisc/Pregap.cs index 0f8f4db5e..7c40d4688 100644 --- a/DiscImageChef.Core/Devices/Dumping/CompactDisc/Pregap.cs +++ b/DiscImageChef.Core/Devices/Dumping/CompactDisc/Pregap.cs @@ -371,16 +371,19 @@ namespace DiscImageChef.Core.Devices.Dumping 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) { + dumpLog?.WriteLine($"Could not read subchannel for sector {lba}"); + updateStatus?.Invoke($"Could not read subchannel for sector {lba}"); + lba++; forward = true; 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))