瀏覽代碼

Mention invalid name repr in exception.

Jelmer Vernooij 14 年之前
父節點
當前提交
23b8ab4935
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dulwich/object_store.py

+ 1 - 1
dulwich/object_store.py

@@ -338,7 +338,7 @@ class PackBasedObjectStore(BaseObjectStore):
             sha = name
             hexsha = None
         else:
-            raise AssertionError
+            raise AssertionError("Invalid object name %r" % name)
         for pack in self.packs:
             try:
                 return pack.get_raw(sha)