diff --git a/intranet/ClassesIntranet/Intranet.py b/intranet/ClassesIntranet/Intranet.py index e95f5a3c..2d40c124 100755 --- a/intranet/ClassesIntranet/Intranet.py +++ b/intranet/ClassesIntranet/Intranet.py @@ -160,7 +160,11 @@ Ceci est un rapport de bug envoye par l'intranet. tb = crans.utils.exceptions.formatExc() text += "\n= Traceback =\n" text += tb - + try: + errorString = tb.split("\n")[-2] + subject = "[Error] %s" % errorString + except: pass + text +="\n= Autres informations =\n" autres_informations = "\n".join( [ "%s: %s" % (str(a), str(kw[a])) for a in kw] ) text += autres_informations @@ -194,7 +198,7 @@ Ceci est un rapport de bug envoye par l'intranet. send_error_repport.exposed = True def testErreur(self): - raise Exception, "sdlfkjqmsdklj" + raise Exception, "Fausse alerte ! (test du systèmede gestion des erreurs)" testErreur.exposed = True