Interpret empty string as retry on project load error.

This commit is contained in:
Mark Harrah 2011-07-24 17:36:42 -04:00
parent 2cacdff1f8
commit a9315dbd49
1 changed files with 1 additions and 1 deletions

View File

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