diff options
author | Adam Spiers <git@adamspiers.org> | 2015-01-16 23:57:56 +0000 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2015-01-16 23:57:56 +0000 |
commit | 50156585798304da336be61caca45be118a5ab23 (patch) | |
tree | bae7f29a7213e0ee61b6c3cc284ae6be77b28383 | |
parent | 6d1b1df4a0e480339671d6d39cd79d91a0a42ff0 (diff) | |
download | git-deps-50156585798304da336be61caca45be118a5ab23.tar.gz |
catch InvalidCommitish exceptions in the CLI
-rwxr-xr-x | git-deps | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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__": |