diff options
author | kerr <hepin1989@gmail.com> | 2018-01-02 02:37:41 +0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-01 10:37:41 -0800 |
commit | ef29d5a0db250232b5d4dd8e947e367b03ecaf39 (patch) | |
tree | 13afc9ba8e6224ce336cead4ef2ad46db9d83938 /core/src/main/scala | |
parent | bd979b5ab9aa3bc479c7800f41393e53b24aae74 (diff) | |
download | mill-ef29d5a0db250232b5d4dd8e947e367b03ecaf39.tar.gz mill-ef29d5a0db250232b5d4dd8e947e367b03ecaf39.tar.bz2 mill-ef29d5a0db250232b5d4dd8e947e367b03ecaf39.zip |
= core use NonFatal (#95)
Diffstat (limited to 'core/src/main/scala')
-rw-r--r-- | core/src/main/scala/mill/eval/Evaluator.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/main/scala/mill/eval/Evaluator.scala b/core/src/main/scala/mill/eval/Evaluator.scala index f53aab40..e9b34204 100644 --- a/core/src/main/scala/mill/eval/Evaluator.scala +++ b/core/src/main/scala/mill/eval/Evaluator.scala @@ -11,6 +11,7 @@ import mill.util import mill.util._ import scala.collection.mutable +import scala.util.control.NonFatal case class Labelled[T](target: NamedTask[T], segments: Seq[Segment]){ def format = target match{ @@ -213,8 +214,9 @@ class Evaluator[T](val workspacePath: Path, target.evaluate(args) } } - }catch{ case e: Throwable => - Result.Exception(e) + }catch{ + case NonFatal(e) => + Result.Exception(e) }finally{ System.setErr(err) System.setOut(out) |