Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNesto committed Jan 7, 2024
1 parent 42d5f76 commit 1984f7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/kotlin/platform/mixin/util/AsmUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ fun findClassNodeByPsiClass(psiClass: PsiClass, module: Module? = psiClass.findM
if (actualThrowable is ProcessCanceledException) {
throw actualThrowable
}

if (actualThrowable is NoSuchFileException) {
return null
}

val message = actualThrowable.message
// TODO: display an error to the user?
if (message == null || !message.contains("Unsupported class file major version")) {
Expand Down

0 comments on commit 1984f7d

Please sign in to comment.