diff options
author | Mads Kiilerich <madski@unity3d.com> | 2013-01-03 17:25:40 +0100 |
---|---|---|
committer | Mads Kiilerich <madski@unity3d.com> | 2013-01-03 17:25:40 +0100 |
commit | 7877b303f840d06a4ec4cb7ee1eda40039c55475 (patch) | |
tree | 3878c3e37c76cee6888ac1a204a3315024e62c6d | |
parent | 731f338d75c3b4e6a461b5d83c1286aa807b1c66 (diff) |
compare: more helpful error messages when a repo wasn't found
--HG--
branch : beta
-rw-r--r-- | rhodecode/controllers/compare.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rhodecode/controllers/compare.py b/rhodecode/controllers/compare.py index 9479c641..2f05a35e 100644 --- a/rhodecode/controllers/compare.py +++ b/rhodecode/controllers/compare.py @@ -103,8 +103,11 @@ class CompareController(BaseRepoController): c.org_repo = org_repo = Repository.get_by_repo_name(org_repo) c.other_repo = other_repo = Repository.get_by_repo_name(other_repo) - if c.org_repo is None or c.other_repo is None: - log.error('Could not found repo %s or %s' % (org_repo, other_repo)) + if c.org_repo is None: + log.error('Could not find org repo %s' % org_repo) + raise HTTPNotFound + if c.other_repo is None: + log.error('Could not find other repo %s' % other_repo) raise HTTPNotFound if c.org_repo != c.other_repo and h.is_git(c.rhodecode_repo): |