Mercurial > hg > mercurial
changeset 1060:b5967ce6f557
TW-70507
author | victory.bedrosova |
---|---|
date | Thu, 11 Mar 2021 14:59:12 +0100 |
parents | 8e5475e8adbd |
children | 04407dc0f496 |
files | mercurial-server/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/HgVcsRootFactory.java |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial-server/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/HgVcsRootFactory.java Thu Mar 11 14:01:08 2021 +0100 +++ b/mercurial-server/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/HgVcsRootFactory.java Thu Mar 11 14:59:12 2021 +0100 @@ -40,7 +40,12 @@ @NotNull public HgVcsRoot createHgRoot(@NotNull VcsRoot root) throws VcsException { - HgVcsRoot hgRoot = new HgVcsRoot(root); + HgVcsRoot hgRoot; + try { + hgRoot = new HgVcsRoot(root); + } catch (Exception e) { + throw new VcsException(e); + } String customClonePath = hgRoot.getCustomClonePath(); if (StringUtil.isEmptyOrSpaces(customClonePath)) return hgRoot;