summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/abstract_web_client.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-11-02 12:36:16 +0100
committerqsm-odoo <qsm@odoo.com>2016-11-02 13:26:00 +0100
commitdd560377e28ac9a8e39f56241bfff490ca7bce3f (patch)
tree745e7459b006cdc66fa971b3ba5f4e6bf5116d3e /addons/web/static/src/js/abstract_web_client.js
parentc8d0fd4a50893535c7be0fb416e1f05a917e98d0 (diff)
[IMP] web: improve traceback reporting
* Do not assault the user with a full traceback on bug, but indicates an error occured and allow him to toggle the traceback * Automatically scroll the traceback to the end (better for python errors) * Propose the user to report the traceback by using a new "Copy" button which correctly copies the full error + traceback
Diffstat (limited to 'addons/web/static/src/js/abstract_web_client.js')
-rw-r--r--addons/web/static/src/js/abstract_web_client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/abstract_web_client.js b/addons/web/static/src/js/abstract_web_client.js
index 115a58a654f..1d9c270b6c3 100644
--- a/addons/web/static/src/js/abstract_web_client.js
+++ b/addons/web/static/src/js/abstract_web_client.js
@@ -122,7 +122,7 @@ var WebClient = Widget.extend({
window.onerror = function (message, file, line, col, error) {
var traceback = error ? error.stack : '';
crash_manager.show_error({
- type: _t("Client Error"),
+ type: _t("Odoo Client Error"),
message: message,
data: {debug: file + ':' + line + "\n" + _t('Traceback:') + "\n" + traceback}
});