[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
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Gaetan Delannay
						Gaetan Delannay