Skip to content
This repository
Browse code

Fixed mima so that exit values are non-zero on failure.

  • Loading branch information...
commit 76651ac92dbda323d1eab23454777904168fcd75 1 parent f68764d
Josh Suereth jsuereth authored
6 reporter/src/main/scala/com/typesafe/tools/mima/cli/Main.scala
@@ -78,14 +78,14 @@ class Main(args: List[String]) extends {
78 78 wrapString(" * " + p.description) mkString "\n "
79 79 }
80 80
81   - def run(): Unit = {
  81 + def run(): Int = {
82 82 val mima = makeMima
83 83 val problems = mima.collectProblems(prevfile, currentfile)
84 84 val header = "Found " + problems.size + " binary incompatibiities"
85 85 println(header)
86 86 println(Seq.fill(header.length)("=") mkString "")
87 87 problems map printProblem foreach println
88   - // TODO - System.exit(problems.size)
  88 + problems.size
89 89 }
90 90 }
91 91
@@ -94,6 +94,6 @@ object Main {
94 94 val runner = new Main(args.toList)
95 95
96 96 if (args.isEmpty || !runner.isDefined) println(runner.helpMsg)
97   - else runner.run()
  97 + else System.exit(runner.run())
98 98 }
99 99 }

0 comments on commit 76651ac

Please sign in to comment.
Something went wrong with that request. Please try again.