-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: Show exception from path matcher correctly
Previously, we would just get a stack trace: ``` Exception in thread "main" java.lang.IllegalArgumentException at sun.nio.fs.UnixFileSystem.getPathMatcher(UnixFileSystem.java:286) at org.scalafmt.config.ProjectFiles$FileMatcher$Nio.<init>(ProjectFiles.scala:74) at org.scalafmt.config.ProjectFiles$FileMatcher$.$anonfun$nio$1(ProjectFiles.scala:70) at scala.collection.immutable.List.map(List.scala:250) at scala.collection.immutable.List.map(List.scala:79) at org.scalafmt.config.ProjectFiles$FileMatcher$.create(ProjectFiles.scala:69) at org.scalafmt.config.ProjectFiles$FileMatcher$.nio(ProjectFiles.scala:70) at org.scalafmt.config.ProjectFiles$FileMatcher$.apply(ProjectFiles.scala:64) at org.scalafmt.cli.ScalafmtCoreRunner$.$anonfun$run$2(ScalafmtCoreRunner.scala:27) at metaconfig.Configured$ConfiguredImplicit.fold(Configured.scala:111) at org.scalafmt.cli.ScalafmtCoreRunner$.run(ScalafmtCoreRunner.scala:23) at org.scalafmt.cli.Cli$.runWithRunner(Cli.scala:140) at org.scalafmt.cli.Cli$.run(Cli.scala:91) at org.scalafmt.cli.Cli$.mainWithOptions(Cli.scala:61) at org.scalafmt.cli.Cli$.main(Cli.scala:43) at org.scalafmt.cli.Cli.main(Cli.scala) ``` Reported in VirtusLab/scala-cli#2415
- Loading branch information
Showing
4 changed files
with
120 additions
and
6 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
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