Skip to content

Commit

Permalink
Rename exceptionDiagnostics to errorDiagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Oct 3, 2024
1 parent a8f14e7 commit 2031b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/kaleidoscope.Kaleidoscope.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ object Kaleidoscope:
else AppliedType(defn.TupleClass(types.length).info.typeSymbol.typeRef, types)

try Pattern.compile(parts.mkString) catch case exception: PatternSyntaxException =>
import exceptionDiagnostics.empty
import errorDiagnostics.empty
abandon(RegexError(RegexError.Reason.InvalidPattern).message)

if types.length == 0 then '{NoExtraction(${Expr(parts.head)})}
Expand Down

0 comments on commit 2031b8d

Please sign in to comment.