Commit 68b54a00 by Yvon Kerdoncuff

on api failure, show all error message in RuntimeException

parent 31c21101
Pipeline #3769 failed with stage
in 48 seconds
...@@ -92,7 +92,7 @@ class OdooAPI: ...@@ -92,7 +92,7 @@ class OdooAPI:
except Exception as e: except Exception as e:
if not (MARSHALL_ERROR in str(e)): if not (MARSHALL_ERROR in str(e)):
coop_logger.error("Error while api execute: %s", str(e)) coop_logger.error("Error while api execute: %s", str(e))
raise RuntimeError('Failed api execute') from e raise RuntimeError('Failed api execute : ' + str(e)) from e
return res return res
def authenticate(self, login, password): def authenticate(self, login, password):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment