Skip to content

Commit

Permalink
Error: use nested error message in WithCode
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Nov 27, 2024
1 parent 8f2d34f commit 5adacbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scalafmt-core/shared/src/main/scala/org/scalafmt/Error.scala
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ object Error {

case object MegaTestFailed extends Error("Mega test failed.")

case class WithCode(error: Throwable, code: String) extends Exception(error)
case class WithCode(error: Throwable, code: String)
extends Exception(error.getMessage, error)

}

0 comments on commit 5adacbf

Please sign in to comment.