Ver Fonte

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

junhuanchen há 1 ano atrás
pai
commit
6e212a9e00
1 ficheiros alterados com 2 adições e 2 exclusões
  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)