Skip to content
Snippets Groups Projects
Commit db3e5716 authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[FIX] ir_attachment: write traceback to logs when upload fail

When the upload of an attachment failed,
e.g. for access rights reasons,
the traceback wasn't written or returned anywhere,
preventing the easy debugging.

opw-640242
parent ac925514
No related branches found
No related tags found
No related merge requests found
......@@ -1168,6 +1168,7 @@ class Binary(http.Controller):
}
except Exception:
args = {'error': "Something horrible happened"}
_logger.exception("Fail to upload attachment %s" % ufile.filename)
return out % (simplejson.dumps(callback), simplejson.dumps(args))
@http.route([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment