void (Exception e) { final HgVcs vcs = HgVcs.getInstance(myProject); if (vcs == null) return; String message = HgBundle.message("hg4idea.command.executor.error", HgExecutableManager.getInstance().getHgExecutable(myProject), e.getMessage()); VcsImplUtil.showErrorMessage(myProject, message, HgBundle.message("hg4idea.error")); }