def error(op, username, fields, err, emsg, traceback):
"""Print an error page when a CodeError occurs"""
- send_error_mail('xvm error on %s for %s: %s' % (op, username, err),
- 'error on %s for %s: %s\n\n%s\n'
- % (op, username, err, emsg))
d = dict(op=op, user=username, fields=fields,
errorMessage=str(err), stderr=emsg, traceback=traceback)
+ details = templates.error_raw(searchList=[d])
+ send_error_mail('xvm error on %s for %s: %s' % (op, username, err),
+ details)
+ d['details'] = details
return templates.error(searchList=[d])
def invalidInput(op, username, fields, err, emsg):