details: http://www.bx.psu.edu/hg/galaxy/rev/89541ac4983f changeset: 2382:89541ac4983f user: Greg Von Kuster <greg@bx.psu.edu> date: Wed Apr 29 13:56:59 2009 -0400 description: Fix for reporting job errors - somehow necessary imported stuff got eliminated. 1 file(s) affected in this change: lib/galaxy/web/controllers/dataset.py diffs (24 lines): diff -r dae0313bf5bb -r 89541ac4983f lib/galaxy/web/controllers/dataset.py --- a/lib/galaxy/web/controllers/dataset.py Wed Apr 29 13:46:02 2009 -0400 +++ b/lib/galaxy/web/controllers/dataset.py Wed Apr 29 13:56:59 2009 -0400 @@ -1,7 +1,7 @@ -import logging, os, mimetypes, smtplib +import logging, os, sets, string, shutil, re, socket, mimetypes, smtplib from galaxy.web.base.controller import * -from galaxy import web, model +from galaxy import util, datatypes, jobs, web, model from cgi import escape, FieldStorage from email.MIMEText import MIMEText @@ -89,8 +89,8 @@ s.sendmail( frm, [ to ], msg.as_string() ) s.close() return trans.show_ok_message( "Your error report has been sent" ) - except: - return trans.show_error_message( "An error occurred sending the report by email" ) + except Exception, e: + return trans.show_error_message( "An error occurred sending the report by email: %s" % str( e ) ) @web.expose def default(self, trans, dataset_id=None, **kwd):