Show nonempty stdout and/or stderr message when installing tool returns with exit code not equal to 0. Fix issue #502

This commit is contained in:
Rik van der Kleij 2020-01-21 20:05:15 +01:00
parent 8f4f1714c3
commit f39b1b2368

View File

@ -88,7 +88,12 @@ object StackCommandLine {
}
if (output.getExitCode != 0) {
HaskellNotificationGroup.logErrorBalloonEvent(project, output.getStderr)
if (output.getStderr.nonEmpty) {
HaskellNotificationGroup.logErrorBalloonEvent(project, output.getStderr)
}
if (output.getStdout.nonEmpty) {
HaskellNotificationGroup.logErrorBalloonEvent(project, output.getStdout)
}
}
output.getExitCode == 0 && !output.isCancelled && !output.isTimeout
})