From 64305b66ef794960bca6358bcb81904333b65a35 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 13 Apr 2019 09:09:03 +0200 Subject: [PATCH] math/js: don't print 'error' when fail to ensure the property's output changes (#512) --- CHANGELOG.md | 2 +- src/client/app/widgets/common/widget.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ed6d2c4..65fbe36f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ - bug fixes - handle network drops correctly (notify immediately and fix reconnection mechanism) - - matrix: regression the `$` variable + - formulas breaking the property update mechanism when not resolved - modal: title layout issue ## 0.45.3 diff --git a/src/client/app/widgets/common/widget.js b/src/client/app/widgets/common/widget.js index 1ef6bca3..74b65b9f 100644 --- a/src/client/app/widgets/common/widget.js +++ b/src/client/app/widgets/common/widget.js @@ -605,7 +605,6 @@ class Widget extends EventEmitter { return typeof r != 'string' ? JSON.stringify(r) : r }) } catch (err) { - propValue = 'ERROR (F12)' console.log((this.getProp('id') || this.props.id) + '.' + propName + ': #{} error:\n' + err) } @@ -622,7 +621,6 @@ class Widget extends EventEmitter { }) } catch (err) { - propValue = 'ERROR (F12)' var stackline = err.stack ? (err.stack.match(/>:([0-9]+):[0-9]+/) || '') : '', line = stackline.length > 1 ? ' at line ' + (parseInt(stackline[1]) - 2) : '' console.log((this.getProp('id') || this.props.id) + '.' + propName + ': JS{{}} error:\n' + err + line)