HgCommandExecutor: notify error even if the command is silent.

This commit is contained in:
Kirill Likhodedov
2011-10-27 14:40:24 +04:00
parent 58a24ccd6c
commit 8508f8fab1
@@ -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;