aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-16 23:57:56 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-16 23:57:56 +0000
commit50156585798304da336be61caca45be118a5ab23 (patch)
treebae7f29a7213e0ee61b6c3cc284ae6be77b28383
parent6d1b1df4a0e480339671d6d39cd79d91a0a42ff0 (diff)
downloadgit-deps-50156585798304da336be61caca45be118a5ab23.tar.gz
catch InvalidCommitish exceptions in the CLI
-rwxr-xr-xgit-deps5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-deps b/git-deps
index 41f596d..401d516 100755
--- a/git-deps
+++ b/git-deps
@@ -774,7 +774,10 @@ def main():
if options.serve:
serve(options)
else:
- cli(options, args)
+ try:
+ cli(options, args)
+ except InvalidCommitish as e:
+ abort(e.message())
if __name__ == "__main__":