##// END OF EJS Templates
compare: more helpful error messages when a repo wasn't found
Mads Kiilerich -
r3143:db4ca221 beta
parent child Browse files
Show More
@@ -103,8 +103,11 b' class CompareController(BaseRepoControll'
103 c.org_repo = org_repo = Repository.get_by_repo_name(org_repo)
103 c.org_repo = org_repo = Repository.get_by_repo_name(org_repo)
104 c.other_repo = other_repo = Repository.get_by_repo_name(other_repo)
104 c.other_repo = other_repo = Repository.get_by_repo_name(other_repo)
105
105
106 if c.org_repo is None or c.other_repo is None:
106 if c.org_repo is None:
107 log.error('Could not found repo %s or %s' % (org_repo, other_repo))
107 log.error('Could not find org repo %s' % org_repo)
108 raise HTTPNotFound
109 if c.other_repo is None:
110 log.error('Could not find other repo %s' % other_repo)
108 raise HTTPNotFound
111 raise HTTPNotFound
109
112
110 if c.org_repo != c.other_repo and h.is_git(c.rhodecode_repo):
113 if c.org_repo != c.other_repo and h.is_git(c.rhodecode_repo):
General Comments 0
You need to be logged in to leave comments. Login now