mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 06:07:24 +02:00
Add toString to TaskFailure exception
This commit is contained in:
@@ -15,4 +15,7 @@ object TaskRunner
|
|||||||
distributor.run().fold(failures => throw new TasksFailed(failures), identity[T])
|
distributor.run().fold(failures => throw new TasksFailed(failures), identity[T])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final case class TasksFailed(failures: List[WorkFailure[Task[_]]]) extends RuntimeException(failures.length + " failed")
|
final case class TasksFailed(failures: List[WorkFailure[Task[_]]]) extends RuntimeException(failures.length + " tasks failed")
|
||||||
|
{
|
||||||
|
override def toString = failures.mkString(getMessage + "\n", "\n\t", "\n")
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user