mirror of https://github.com/sbt/sbt.git
add output when book server socket fails to create
This commit is contained in:
parent
ab59e4c6ba
commit
5874ad920e
|
|
@ -153,9 +153,13 @@ private[sbt] object xMain {
|
|||
if (ITerminal.get.withRawInput(System.in.read) == 'n'.toInt) Some(Exit(1))
|
||||
else None
|
||||
(None, exit)
|
||||
case _: ServerAlreadyBootingException =>
|
||||
case e: ServerAlreadyBootingException =>
|
||||
if (SysProp.forceServerStart) (None, None)
|
||||
else (None, Some(Exit(2)))
|
||||
else {
|
||||
println("Boot server failed to create socket")
|
||||
e.printStackTrace()
|
||||
(None, Some(Exit(2)))
|
||||
}
|
||||
case _: UnsatisfiedLinkError => (None, None)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue