[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:
|
except Exception, e:
|
||||||
tb = sutils.Traceback.get()
|
tb = sutils.Traceback.get()
|
||||||
res = XmlMarshaller(rootTag='exception').marshall(tb)
|
res = XmlMarshaller(rootTag='exception').marshall(tb)
|
||||||
|
self.log(tb, type='error')
|
||||||
import transaction
|
import transaction
|
||||||
transaction.abort()
|
transaction.abort()
|
||||||
return res
|
return res
|
||||||
|
|
Loading…
Reference in a new issue