mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 18:14:04 +02:00
print message and stack trace when exception occurs in completion
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user