ReplOutputHandler: log xml parsing exception cause (EA-103447)
This commit is contained in:
@@ -73,7 +73,7 @@ class ReplOutputHandler(
|
||||
factory.newDocumentBuilder().parse(strToSource(text))
|
||||
}
|
||||
catch (e: Exception) {
|
||||
logError(ReplOutputHandler::class.java, "Couldn't parse REPL output: $text")
|
||||
logError(ReplOutputHandler::class.java, "Couldn't parse REPL output: $text", e)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ class ReplOutputHandler(
|
||||
factory.newDocumentBuilder().parse(strToSource(text))
|
||||
}
|
||||
catch (e: Exception) {
|
||||
logError(ReplOutputHandler::class.java, "Couldn't parse REPL output: $text")
|
||||
logError(ReplOutputHandler::class.java, "Couldn't parse REPL output: $text", e)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ fun errorNotification(project: Project?, message: String) {
|
||||
Notifications.Bus.notify(Notification(errorTag, errorTitle, message, NotificationType.ERROR), project)
|
||||
}
|
||||
|
||||
fun logError(cl: Class<*>, message: String) = with(Logger.getInstance(cl)) { error(message) }
|
||||
fun logError(cl: Class<*>, message: String, t: Throwable? = null) = with(Logger.getInstance(cl)) { error(message, t) }
|
||||
|
||||
class RunKotlinConsoleAction : AnAction() {
|
||||
override fun actionPerformed(e: AnActionEvent) {
|
||||
|
||||
Reference in New Issue
Block a user