Mercurial > hg > mercurial
changeset 505:aa67433a0c05 Faradi-7.1.x
Detect yet another error from OS when hg executable not found
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Fri, 09 Nov 2012 14:48:51 +0400 |
parents | f490cd3b4f14 |
children | 892f95a0f82d |
files | mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/CommandResult.java |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/CommandResult.java Fri Nov 09 14:46:44 2012 +0400 +++ b/mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/CommandResult.java Fri Nov 09 14:48:51 2012 +0400 @@ -99,9 +99,10 @@ private boolean isMercurialNotFoundErrorMessage(@Nullable String message) { return message != null && - message.startsWith(MERCURIAL_NOT_FOUND_MESSAGE_PREFIX) && - (message.endsWith(MERCURIAL_NOT_FOUND_MESSAGE_SUFFIX1) || - message.endsWith(MERCURIAL_NOT_FOUND_MESSAGE_SUFFIX2)); + (message.startsWith(MERCURIAL_NOT_FOUND_MESSAGE_PREFIX) && + (message.endsWith(MERCURIAL_NOT_FOUND_MESSAGE_SUFFIX1) || + message.endsWith(MERCURIAL_NOT_FOUND_MESSAGE_SUFFIX2)) || + message.startsWith("CreateProcess") && message.endsWith("error=2")); } private void logStderr(String stderr) {