From 8508f8fab1cf8cd9b7e06fced52e1c6ce66a558d Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Thu, 27 Oct 2011 14:40:24 +0400 Subject: [PATCH] HgCommandExecutor: notify error even if the command is silent. --- .../org/zmlx/hg4idea/execution/HgCommandExecutor.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/execution/HgCommandExecutor.java b/plugins/hg4idea/src/org/zmlx/hg4idea/execution/HgCommandExecutor.java index c51bc21e3e0b..011d682d75c4 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/execution/HgCommandExecutor.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/execution/HgCommandExecutor.java @@ -154,13 +154,9 @@ public final class HgCommandExecutor { passReceiver.saveCredentials(); } } catch (ShellCommandException e) { - if (!myIsSilent) { - if (myVcs.getExecutableValidator().checkExecutableAndNotifyIfNeeded()) { - // if the problem was not with invalid executable - show error. - showError(e); - LOG.info(e.getMessage(), e); - } - } else { + if (myVcs.getExecutableValidator().checkExecutableAndNotifyIfNeeded()) { + // if the problem was not with invalid executable - show error. + showError(e); LOG.info(e.getMessage(), e); } return null;