aboutsummaryrefslogtreecommitdiffstats
path: root/webhook-core.py
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2016-02-07 21:10:27 +0100
committerRalf Jung <post@ralfj.de>2016-02-07 21:10:27 +0100
commit1a85298cc06a5dd0d84961bb1060b1049920ef07 (patch)
tree010b815bd19d6dad5435d84dd24dd01f6eced437 /webhook-core.py
parent3311042f60fc70b874138f5c4e1f54b38ad751da (diff)
slightly more informative error messages
Diffstat (limited to 'webhook-core.py')
-rwxr-xr-xwebhook-core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/webhook-core.py b/webhook-core.py
index 83cb03e..90432c8 100755
--- a/webhook-core.py
+++ b/webhook-core.py
@@ -51,7 +51,7 @@ if __name__ == "__main__":
githubEvent = sys.argv[2]
githubSignature = sys.argv[3]
if reponame not in repos:
- raise Exception("Repository missing or not found.")
+ raise Exception("Repository {} missing or not found.".format(reponame))
repo = repos[reponame]
# now sync this repository
@@ -91,4 +91,4 @@ if __name__ == "__main__":
print("Status: 500 Internal Server Error")
print("Content-Type: text/plain")
print()
- print("We have a problem:\n{}".format('\n'.join(traceback.format_exception_only(type(e), e))))
+ print("git-mirror: We have a problem:\n{}".format('\n'.join(traceback.format_exception_only(type(e), e))))