Browse Source

更新 'backup/preset/app/checkout.py'

junhuanchen 1 year ago
parent
commit
6e212a9e00
1 changed files with 2 additions and 2 deletions
  1. 2 2
      backup/preset/app/checkout.py

+ 2 - 2
backup/preset/app/checkout.py

@@ -15,8 +15,8 @@ def checkout(rep, branch):
     r = repo.Repo(rep)
     try:
         porcelain.checkout_branch(r, 'origin/' + branch)
-    except porcelain.CheckoutError:
-        print("Error")
+    except porcelain.CheckoutError as e::
+        print("CheckoutError:", e)
         porcelain.reset(r, 'hard')
         porcelain.checkout_branch(r, 'origin/' + branch)