Commit e174c27d authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update dbsvc.destroy to fix error message.

parent 2a2b3a2e
......@@ -490,11 +490,11 @@ class DbSvc(BaseSvc):
# operation can be rejected by the database
except Exception as dbe:
otd = {SUCCESS: False,
"errors": dbe.message,
"errors": str(dbe),
ROOT: {table_id: rec_id}}
return otd
# operation can be reject by callbacks table._before_delete
# operation can be rejected by callbacks table._before_delete
if not rep:
if CALLBACK_ERRORS in table:
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