-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ultra-long invalid Scala version errors (#2724)
- Loading branch information
Showing
5 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
modules/core/src/main/scala/scala/build/errors/NoValidScalaVersionFoundError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package scala.build.errors | ||
|
||
import scala.build.errors.ScalaVersionError.getTheGeneralErrorInfo | ||
|
||
final class NoValidScalaVersionFoundError(val foundVersions: Seq[String]) extends ScalaVersionError( | ||
s"Cannot find a valid matching Scala version among ${foundVersions.mkString(", ")}" | ||
) | ||
final class NoValidScalaVersionFoundError(val versionString: String = "") | ||
extends ScalaVersionError({ | ||
val suffix = if versionString.nonEmpty then s" for $versionString" else "" | ||
s"Cannot find a valid matching Scala version$suffix." | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters