mirror of https://github.com/sbt/sbt.git
Interpret empty string as retry on project load error.
This commit is contained in:
parent
2cacdff1f8
commit
a9315dbd49
|
|
@ -349,7 +349,7 @@ object BuiltinCommands
|
|||
val result = (SimpleReader.readLine("Project loading failed: (r)etry, (q)uit, or (i)gnore? ") getOrElse Quit).toLowerCase
|
||||
def matches(s: String) = !result.isEmpty && (s startsWith result)
|
||||
|
||||
if(matches("retry"))
|
||||
if(result.isEmpty || matches("retry"))
|
||||
LoadProject :: s
|
||||
else if(matches(Quit))
|
||||
s.exit(ok = false)
|
||||
|
|
|
|||
Loading…
Reference in New Issue