Further improve malformed `.cue` UX

see 8f963ba58, #4013
This commit is contained in:
YoshiRulz 2024-09-14 04:59:38 +10:00
parent fa361ce06c
commit c913c5a6e6
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 1 deletions

View File

@ -25,9 +25,10 @@ namespace BizHawk.Emulation.DiscSystem
if (discMountJob.OUT_ErrorLevel)
{
throw new Exception(string.IsNullOrEmpty(discMountJob.OUT_Log)
errorCallback(string.IsNullOrEmpty(discMountJob.OUT_Log)
? $"Could not process file \"{path}\"."
: $"Could not process file \"{path}\". Warnings/errors:\n{discMountJob.OUT_Log}\n(end disc load log)");
return discMountJob.OUT_Disc;
}
var disc = discMountJob.OUT_Disc;