X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/907f34a95f096535be1b47e99f37b063a2a8245c..2679b6ea15e3cec298488a17ad845d0d5064beb2:/code/main.py diff --git a/code/main.py b/code/main.py index 248f0f6..80761ae 100755 --- a/code/main.py +++ b/code/main.py @@ -617,6 +617,8 @@ def show_error(op, username, fields, err, emsg, traceback): 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])