changeset 1061:24b84c5028bf Lakhnau-2020.2.x

TW-70507 (grafted from b5967ce6f5577f07cb858ce2319fa03f0217cc28)
author victory.bedrosova
date Thu, 11 Mar 2021 14:59:12 +0100
parents cd7011049ea4
children 4b6661db8a8a
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;