diff options
author | Jan Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-19 14:40:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-19 14:40:13 +0200 |
commit | 12eb7649a929a42d376831e8b0d7b6f38ee0876b (patch) | |
tree | d82283cbc267dac5d13499a32f24c796e30d60e4 /plugins/scalafmt/Scalafmt.scala | |
parent | 0ec1d01e7c99ee6cea1d7a0be956d1845a3721d6 (diff) | |
parent | 8981e35d7eb7066ee8cb2a5777d4c83e1986696d (diff) | |
download | cbt-12eb7649a929a42d376831e8b0d7b6f38ee0876b.tar.gz cbt-12eb7649a929a42d376831e8b0d7b6f38ee0876b.tar.bz2 cbt-12eb7649a929a42d376831e8b0d7b6f38ee0876b.zip |
Merge pull request #232 from rockjam/upgrade-scalafmt
Upgrade scalafmt 0.2.5 -> 0.3.1
Diffstat (limited to 'plugins/scalafmt/Scalafmt.scala')
-rw-r--r-- | plugins/scalafmt/Scalafmt.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/scalafmt/Scalafmt.scala b/plugins/scalafmt/Scalafmt.scala index 94670cb..a1c7a0d 100644 --- a/plugins/scalafmt/Scalafmt.scala +++ b/plugins/scalafmt/Scalafmt.scala @@ -1,5 +1,6 @@ package cbt +import org.scalafmt.Error.Incomplete import org.scalafmt.{FormatResult, ScalafmtStyle} import java.io.File @@ -41,10 +42,10 @@ object Scalafmt { write(path, formatted.getBytes) reformattedCount += 1 } + case FormatResult.Failure(e: Incomplete) => + System.err.println(s"Couldn't complete file reformat: $path") case FormatResult.Failure(e) => System.err.println(s"Failed to format file: $path, cause: ${e}") - case FormatResult.Incomplete(e) => - System.err.println(s"Couldn't complete file reformat: $path") } } } |