Skip to content

Commit

Permalink
Refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Beust committed Apr 27, 2017
1 parent 7ea182b commit 5629806
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ class TaskWorker(val tasks: List<ITask>, val dryRun: Boolean, val pluginInfo: Pl
val tr = if (dryRun) TaskResult() else it.call()
BaseProjectRunner.runBuildListenersForTask(it.project, context, name, start = false, success = tr.success)
success = success and tr.success
if (tr.errorMessage != null) errorMessages.add(tr.errorMessage)
tr.errorMessage?.let {
errorMessages.add(it)
}
}
return TaskResult2(success, errorMessage = errorMessages.joinToString("\n"), value = tasks[0])
}
Expand Down

0 comments on commit 5629806

Please sign in to comment.