diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-10 13:47:27 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-10 13:47:27 -0800 |
commit | 719ff8a6d79093d390b0d5ce7d01755e65fcd484 (patch) | |
tree | 0281f4cb3a2f9db9c6e5dd2826abc021eb824036 /main/src | |
parent | 43c10304c75afefad6f861fe25083aec858a6dfb (diff) | |
download | mill-719ff8a6d79093d390b0d5ce7d01755e65fcd484.tar.gz mill-719ff8a6d79093d390b0d5ce7d01755e65fcd484.tar.bz2 mill-719ff8a6d79093d390b0d5ce7d01755e65fcd484.zip |
fix evaluateTasks
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/mill/main/MainModule.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/mill/main/MainModule.scala b/main/src/mill/main/MainModule.scala index 56e43f6f..8a4cbefa 100644 --- a/main/src/mill/main/MainModule.scala +++ b/main/src/mill/main/MainModule.scala @@ -18,7 +18,9 @@ object MainModule{ RunScript.evaluateTasks(evaluator, targets, multiSelect) match{ case Left(err) => Result.Failure(err) case Right((watched, Left(err))) => Result.Failure(err, Some(Watched((), watched))) - case Right((watched, Right(res))) => Result.Success(Watched((), watched)) + case Right((watched, Right(res))) => + f(res) + Result.Success(Watched((), watched)) } } } |