On convert image, when in debug mode, show why the sidecars have been rejected.

This commit is contained in:
2020-02-01 19:44:55 +00:00
parent 4da9979701
commit 6ec093a4b5

View File

@@ -258,9 +258,10 @@ namespace DiscImageChef.Commands.Image
sidecar = (CICMMetadataType)xs.Deserialize(sr);
sr.Close();
}
catch
catch(Exception ex)
{
DicConsole.ErrorWriteLine("Incorrect metadata sidecar file, not continuing...");
DicConsole.DebugWriteLine("Image conversion", $"{ex}");
return(int)ErrorNumber.InvalidSidecar;
}
@@ -281,9 +282,10 @@ namespace DiscImageChef.Commands.Image
resume = (Resume)xs.Deserialize(sr);
sr.Close();
}
catch
catch(Exception ex)
{
DicConsole.ErrorWriteLine("Incorrect resume file, not continuing...");
DicConsole.DebugWriteLine("Image conversion", $"{ex}");
return(int)ErrorNumber.InvalidResume;
}