# HG changeset patch # User victory.bedrosova # Date 1615471152 -3600 # Node ID b5967ce6f5577f07cb858ce2319fa03f0217cc28 # Parent 8e5475e8adbd9899f7a56c5ba09c3043e2192245 TW-70507 diff -r 8e5475e8adbd -r b5967ce6f557 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;