Report errors from REPL to Scratch Console
This commit is contained in:
@@ -108,8 +108,9 @@ class KtScratchReplExecutor(file: ScratchFile) : ScratchExecutor(file) {
|
|||||||
override fun notifyTextAvailable(text: String, outputType: Key<*>) {
|
override fun notifyTextAvailable(text: String, outputType: Key<*>) {
|
||||||
if (text.startsWith("warning: classpath entry points to a non-existent location")) return
|
if (text.startsWith("warning: classpath entry points to a non-existent location")) return
|
||||||
|
|
||||||
if (outputType == ProcessOutputTypes.STDOUT) {
|
when (outputType) {
|
||||||
handleReplMessage(text)
|
ProcessOutputTypes.STDOUT -> handleReplMessage(text)
|
||||||
|
ProcessOutputTypes.STDERR -> errorOccurs(text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user