Mercurial > kallithea
changeset 3143:db4ca2212ec0 beta
compare: more helpful error messages when a repo wasn't found
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 03 Jan 2013 17:25:40 +0100 |
parents | 1e7839c0930a |
children | a64fb6d9ce03 |
files | rhodecode/controllers/compare.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/controllers/compare.py Thu Jan 03 17:25:40 2013 +0100 +++ b/rhodecode/controllers/compare.py Thu Jan 03 17:25:40 2013 +0100 @@ -103,8 +103,11 @@ 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):