Skip to content

Commit c913c5a

Browse files
committed
Further improve malformed .cue UX
see 8f963ba, #4013
1 parent fa361ce commit c913c5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/BizHawk.Emulation.DiscSystem/DiscExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ private static Disc CreateImpl(DiscType? type, string path, Action<string> error
2525

2626
if (discMountJob.OUT_ErrorLevel)
2727
{
28-
throw new Exception(string.IsNullOrEmpty(discMountJob.OUT_Log)
28+
errorCallback(string.IsNullOrEmpty(discMountJob.OUT_Log)
2929
? $"Could not process file \"{path}\"."
3030
: $"Could not process file \"{path}\". Warnings/errors:\n{discMountJob.OUT_Log}\n(end disc load log)");
31+
return discMountJob.OUT_Disc;
3132
}
3233

3334
var disc = discMountJob.OUT_Disc;

0 commit comments

Comments
 (0)