[gen] Mixin.xml: if an error occurs, log it before xml-marshalling it to the caller app.
This commit is contained in:
parent
897b183b01
commit
8511c22612
|
@ -533,6 +533,7 @@ class BaseMixin:
|
|||
except Exception, e:
|
||||
tb = sutils.Traceback.get()
|
||||
res = XmlMarshaller(rootTag='exception').marshall(tb)
|
||||
self.log(tb, type='error')
|
||||
import transaction
|
||||
transaction.abort()
|
||||
return res
|
||||
|
|
Loading…
Reference in a new issue