diff options
-rw-r--r-- | core/src/main/scala/mill/eval/Evaluator.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/main/scala/mill/eval/Evaluator.scala b/core/src/main/scala/mill/eval/Evaluator.scala index 4d94d3d9..f53aab40 100644 --- a/core/src/main/scala/mill/eval/Evaluator.scala +++ b/core/src/main/scala/mill/eval/Evaluator.scala @@ -213,6 +213,8 @@ class Evaluator[T](val workspacePath: Path, target.evaluate(args) } } + }catch{ case e: Throwable => + Result.Exception(e) }finally{ System.setErr(err) System.setOut(out) |