Skip to content

Commit

Permalink
Enhance the error message for the update command
Browse files Browse the repository at this point in the history
  • Loading branch information
danicheg committed Feb 13, 2025
1 parent 107b9f4 commit a6327db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/scala/scalafix/sbt/ScalafixPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,10 @@ object ScalafixPlugin extends AutoPlugin {
val scalaV = scalaVersion.value
val msg = s"The SemanticDB scalac plugin version ${rev} set up " +
"via `semanticdbVersion` does follow the version recommended " +
"for Scalafix, but is not supported for the outdated Scala " +
s"version ${scalaV}. Please upgrade to a more recent Scala " +
"patch version or uninstall sbt-scalafix."
"for Scalafix, but is not supported for the given Scala " +
s"version ${scalaV}. Please consider upgrading to a more recent version " +
"of sbt-scalafix and/or Scala, or uninstalling sbt-scalafix plugin. " +
"Crucially, sbt-scalafix must be published for the given Scala version."
throw inc.copy(message = Some(msg))
case _ =>
}
Expand Down

0 comments on commit a6327db

Please sign in to comment.