[FIX] base, web: log correctly error in assets

Since [1], when an error exists in an asset, the assets raise a not
found exception. The issue, is that, there is no feedback for the
developer to find the error.

Now, a new console log with the error details is shown.

[1] : bf3b6b0b8b

closes odoo/odoo#141705

Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
This commit is contained in:
Jorge Pinna Puissant
2023-11-10 12:33:40 +00:00
parent 4af024de5b
commit afc8dde97a
3 changed files with 5 additions and 10 deletions
+1
View File
@@ -129,6 +129,7 @@ class Binary(http.Controller):
elif js and bundle.javascripts:
attachment = bundle.js()
except ValueError as e:
_logger.error(e.args[0])
raise request.not_found() from e
if not attachment:
raise request.not_found()