equal
deleted
inserted
replaced
136 if req.ajax_request: |
136 if req.ajax_request: |
137 content = self.appli.ajax_error_handler(req, exc) |
137 content = self.appli.ajax_error_handler(req, exc) |
138 else: |
138 else: |
139 try: |
139 try: |
140 req.data['ex'] = exc |
140 req.data['ex'] = exc |
|
141 req.data['excinfo'] = excinfo |
141 errview = vreg['views'].select('error', req) |
142 errview = vreg['views'].select('error', req) |
142 template = self.appli.main_template_id(req) |
143 template = self.appli.main_template_id(req) |
143 content = vreg['views'].main_template(req, template, view=errview) |
144 content = vreg['views'].main_template(req, template, view=errview) |
144 except Exception: |
145 except Exception: |
145 content = vreg['views'].main_template(req, 'error-template') |
146 content = vreg['views'].main_template(req, 'error-template') |