show full stack trace by default when running in batch mode

This commit is contained in:
Mark Harrah
2012-06-22 22:11:24 -04:00
parent 2df88bf0a3
commit dc2aaaf7ac
4 changed files with 18 additions and 3 deletions
+2 -2
View File
@@ -118,9 +118,9 @@ object BasicCommands
val line = reader.readLine(prompt)
line match {
case Some(line) =>
val newState = s.copy(onFailure = Some(Shell), remainingCommands = line +: Shell +: s.remainingCommands)
val newState = s.copy(onFailure = Some(Shell), remainingCommands = line +: Shell +: s.remainingCommands).setInteractive(true)
if(line.trim.isEmpty) newState else newState.clearGlobalLog
case None => s
case None => s.setInteractive(false)
}
}