##// END OF EJS Templates
missing changesets should return 404 not redirect + flash....
marcink -
r3619:03028bf3 beta
parent child Browse files
Show More
@@ -26,7 +26,7 b''
26 import logging
26 import logging
27 import traceback
27 import traceback
28 from collections import defaultdict
28 from collections import defaultdict
29 from webob.exc import HTTPForbidden, HTTPBadRequest
29 from webob.exc import HTTPForbidden, HTTPBadRequest, HTTPNotFound
30
30
31 from pylons import tmpl_context as c, url, request, response
31 from pylons import tmpl_context as c, url, request, response
32 from pylons.i18n.translation import _
32 from pylons.i18n.translation import _
@@ -204,7 +204,7 b' class ChangesetController(BaseRepoContro'
204 except (RepositoryError, ChangesetDoesNotExistError, Exception), e:
204 except (RepositoryError, ChangesetDoesNotExistError, Exception), e:
205 log.error(traceback.format_exc())
205 log.error(traceback.format_exc())
206 h.flash(str(e), category='error')
206 h.flash(str(e), category='error')
207 return redirect(url('changeset_home', repo_name=c.repo_name))
207 raise HTTPNotFound()
208
208
209 c.changes = OrderedDict()
209 c.changes = OrderedDict()
210
210
General Comments 0
You need to be logged in to leave comments. Login now