# HG changeset patch # User victory.bedrosova # Date 1615471152 -3600 # Node ID 24b84c5028bf41a96253c648f5f528a07cf818fb # Parent cd7011049ea41d9aac1d0ab83ae4356f650b21e8 TW-70507 (grafted from b5967ce6f5577f07cb858ce2319fa03f0217cc28) diff -r cd7011049ea4 -r 24b84c5028bf mercurial-server/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/HgVcsRootFactory.java --- 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;