diff --git a/tasty/src/dotty/tools/tasty/TastyHeaderUnpickler.scala b/tasty/src/dotty/tools/tasty/TastyHeaderUnpickler.scala index e7b4a07c25b3..917f0840f1c4 100644 --- a/tasty/src/dotty/tools/tasty/TastyHeaderUnpickler.scala +++ b/tasty/src/dotty/tools/tasty/TastyHeaderUnpickler.scala @@ -109,11 +109,11 @@ object TastyHeaderUnpickler { val fileMinorVersion = showMinorVersion(fileMinor, fileExperimental) if (MajorVersion == 28 && fileMajor == 28) - s"""Found a file on classpath, that was compiled with a newer Scala version than the one currently used. + s"""Found a file on classpath that was compiled with a newer Scala version than the one currently used. | Found: 3.$fileMinorVersion | Supported: 3.$minorVersion or older | - | Try updating your Scala version to 3.$fileMinorVersion or change the classpath.""".stripMargin + | To fix this issue, try updating your Scala version to 3.$fileMinorVersion.""".stripMargin else // This should not happen in practice but better safe than sorry s"""TASTy signature has wrong version that cannot be expressed as Scala version.