equal
deleted
inserted
replaced
566 return self.ajax_error_handler(req, ex) |
566 return self.ajax_error_handler(req, ex) |
567 try: |
567 try: |
568 req.data['ex'] = ex |
568 req.data['ex'] = ex |
569 if tb: |
569 if tb: |
570 req.data['excinfo'] = excinfo |
570 req.data['excinfo'] = excinfo |
571 req.form['vid'] = 'error' |
|
572 errview = self.vreg['views'].select('error', req) |
571 errview = self.vreg['views'].select('error', req) |
573 template = self.main_template_id(req) |
572 template = self.main_template_id(req) |
574 content = self.vreg['views'].main_template(req, template, view=errview) |
573 content = self.vreg['views'].main_template(req, template, view=errview) |
575 except Exception: |
574 except Exception: |
576 content = self.vreg['views'].main_template(req, 'error-template') |
575 content = self.vreg['views'].main_template(req, 'error-template') |