add output when book server socket fails to create

This commit is contained in:
Devin Fisher 2022-08-05 09:57:22 -06:00 committed by Eugene Yokota
parent ab59e4c6ba
commit 5874ad920e
1 changed files with 6 additions and 2 deletions

View File

@ -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)
}
}