mirror of
https://github.com/sbt/sbt.git
synced 2026-10-07 18:43:31 +02:00
Interpret empty string as retry on project load error.
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user