From 681fd812b3f20d71d20ea77b0280b026d7c0305b Mon Sep 17 00:00:00 2001
From: adam-m <amalinowski@basistech.com>
Date: Wed, 5 Jun 2013 12:13:11 -0400
Subject: [PATCH] add debug info to update_version when it fails

---
 update_versions.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/update_versions.py b/update_versions.py
index ac0b20aba7..77d8b42ac5 100644
--- a/update_versions.py
+++ b/update_versions.py
@@ -711,7 +711,7 @@ def handleRemoveReadonly(func, path, exc):
 # Run git clone and git checkout for the tag
 def do_git(tag, tag_dir):
     try:
-        printt("Cloning Autopsy (this could take a while)...")
+        printt("Cloning Autopsy tag " + tag + " into dir " + tag_dir + " (this could take a while)...")
         subprocess.call(["git", "clone", "https://github.com/sleuthkit/autopsy.git", tag_dir],
                         stdout=subprocess.PIPE)
         printt("Checking out tag " + tag + "...")
@@ -719,8 +719,9 @@ def do_git(tag, tag_dir):
                         stdout=subprocess.PIPE,
                         cwd=tag_dir)
         return True
-    except:
-        print("Error cloning and checking out Autopsy.")
+    except Exception as ex:
+        print("Error cloning and checking out Autopsy: ",  sys.exc_info()[0])
+        print ex
         print("The terminal you are using most likely does not recognize git commands.")
         return False
 
-- 
GitLab