Skip to content

Commit

Permalink
Log HardError diagnostics during Runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
AliveDevil committed Nov 28, 2024
1 parent 8824ffd commit 05c39eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IKVM.Runtime/MethodAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2485,7 +2485,7 @@ private void ConditionalPatchNoClassDefFoundError(ref ClassFile.Method.Instructi
private void SetHardError(RuntimeClassLoader classLoader, ref ClassFile.Method.Instruction instruction, HardError hardError, string message, params object[] args)
{
string text = string.Format(message, args);
#if IMPORTER

switch (hardError)
{
case HardError.NoClassDefFoundError:
Expand Down Expand Up @@ -2518,7 +2518,7 @@ private void SetHardError(RuntimeClassLoader classLoader, ref ClassFile.Method.I
default:
throw new InvalidOperationException();
}
#endif
instruction.SetHardError(hardError, AllocErrorMessage(text));
}

Expand Down

0 comments on commit 05c39eb

Please sign in to comment.