mirror of https://github.com/sbt/sbt.git
This commit is contained in:
parent
ab05465ef4
commit
febccde3e7
|
|
@ -146,13 +146,12 @@ private[sbt] object xMain {
|
||||||
catch {
|
catch {
|
||||||
case e: ServerAlreadyBootingException
|
case e: ServerAlreadyBootingException
|
||||||
if System.console != null && !ITerminal.startedByRemoteClient =>
|
if System.console != null && !ITerminal.startedByRemoteClient =>
|
||||||
println(
|
println("sbt thinks that server is already booting because of this exception:")
|
||||||
s"sbt thinks that server is already booting because of this exception:\n${e.getCause}\nCreate a new server? y/n (default y)"
|
e.printStackTrace()
|
||||||
)
|
println("Create a new server? y/n (default y)")
|
||||||
val exit = ITerminal.get.withRawInput(System.in.read) match {
|
val exit =
|
||||||
case 110 => Some(Exit(1))
|
if (ITerminal.get.withRawInput(System.in.read) == 'n'.toInt) Some(Exit(1))
|
||||||
case _ => None
|
else None
|
||||||
}
|
|
||||||
(None, exit)
|
(None, exit)
|
||||||
case _: ServerAlreadyBootingException =>
|
case _: ServerAlreadyBootingException =>
|
||||||
if (SysProp.forceServerStart) (None, None)
|
if (SysProp.forceServerStart) (None, None)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue