diff options
author | rockjam <rockjam@actor.im> | 2016-09-19 15:08:11 +0300 |
---|---|---|
committer | rockjam <rockjam@actor.im> | 2016-09-19 15:08:11 +0300 |
commit | 8981e35d7eb7066ee8cb2a5777d4c83e1986696d (patch) | |
tree | d82283cbc267dac5d13499a32f24c796e30d60e4 /plugins/scalafmt/Scalafmt.scala | |
parent | 0ec1d01e7c99ee6cea1d7a0be956d1845a3721d6 (diff) | |
download | cbt-8981e35d7eb7066ee8cb2a5777d4c83e1986696d.tar.gz cbt-8981e35d7eb7066ee8cb2a5777d4c83e1986696d.tar.bz2 cbt-8981e35d7eb7066ee8cb2a5777d4c83e1986696d.zip |
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") } } } |