Skip to content

Commit

Permalink
print message and stack trace when exception occurs in completion
Browse files Browse the repository at this point in the history
  • Loading branch information
harrah committed May 22, 2012
1 parent 9cf2c41 commit e34b8e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion util/complete/JLineCompletion.scala
Expand Up @@ -28,7 +28,12 @@ object JLineCompletion
val current = Some(bufferSnapshot(reader))
level = if(current == previous) level + 1 else 1
previous = current
completeImpl(reader, level)
try completeImpl(reader, level)
catch { case e: Exception =>
reader.printString("\nException occurred while determining completions.")
e.printStackTrace()
false
}
}
}

Expand Down

0 comments on commit e34b8e4

Please sign in to comment.