Merge pull request #3961 from kchadha/fix-error-logging

Fix error logging when workspace fails to update
This commit is contained in:
Karishma Chadha authored and GitHub committed 2018-12-06 10:52:25 -05:00
commit 12adb2c263
1 file changed
+3 -1
+3 -1
View File
@@ -325,7 +325,9 @@ class Blocks extends React.Component {
// incomplete. Throwing the error would keep things like setting the
// correct editing target from happening which can interfere with
// some blocks and processes in the vm.
error.message = `Workspace Update Error: ${error.message}`;
if (error.message) {
error.message = `Workspace Update Error: ${error.message}`;
}
log.error(error);
}
this.workspace.addChangeListener(this.props.vm.blockListener);