From 4f86325efc1a833eb9f291e992017120e82b4e39 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 25 2014 11:10:35 +0000 Subject: Add an error message when trying to access a commit that's not in the repo --- diff --git a/progit/app.py b/progit/app.py index f664a44..25b0449 100644 --- a/progit/app.py +++ b/progit/app.py @@ -298,7 +298,7 @@ def view_commit(repo, commitid, username=None): try: commit = repo_obj.get(commitid) except ValueError: - flask.abort(404) + flask.abort(404, 'Commit not found') if commit.parents: diff = commit.tree.diff_to_tree()