Skip to content
Snippets Groups Projects
Unverified Commit 12adb2c2 authored by Karishma Chadha's avatar Karishma Chadha Committed by GitHub
Browse files

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

Fix error logging when workspace fails to update 
parents c05a9368 6c84d25f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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