mirror of https://github.com/sbt/sbt.git
Improve error message
Previously, the invalid commands would be wrapped in 'Left($CMD)'.
This commit is contained in:
parent
d9e8ae18b2
commit
a1580bafbf
|
|
@ -286,9 +286,8 @@ object Watched {
|
|||
val terminationAction = watch(in, task, config)
|
||||
config.onWatchTerminated(terminationAction, command, state)
|
||||
} else {
|
||||
config.logger.error(
|
||||
s"Terminating watch due to invalid command(s): ${invalid.mkString("'", "', '", "'")}"
|
||||
)
|
||||
val commands = invalid.flatMap(_.left.toOption).mkString("'", "', '", "'")
|
||||
config.logger.error(s"Terminating watch due to invalid command(s): $commands")
|
||||
state.fail
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue