|
@@ -227,10 +227,10 @@ class Worker {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- addBlockLog('error', {
|
|
|
- message: error.message,
|
|
|
- ...(error.data || {}),
|
|
|
- });
|
|
|
+ const errorLogItem = { message: error.message, ...(error.data || {}) };
|
|
|
+ addBlockLog('error', errorLogItem);
|
|
|
+
|
|
|
+ errorLogItem.blockId = block.id;
|
|
|
|
|
|
const { onError } = this.settings;
|
|
|
const nodeConnections = this.getBlockConnections(block.id);
|
|
@@ -246,7 +246,7 @@ class Worker {
|
|
|
|
|
|
if (restartCount >= maxRestart) {
|
|
|
localStorage.removeItem(restartKey);
|
|
|
- this.engine.destroy('error');
|
|
|
+ this.engine.destroy('error', error.message, errorLogItem);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -257,7 +257,7 @@ class Worker {
|
|
|
|
|
|
localStorage.setItem(restartKey, restartCount + 1);
|
|
|
} else {
|
|
|
- this.engine.destroy('error', error.message);
|
|
|
+ this.engine.destroy('error', error.message, errorLogItem);
|
|
|
}
|
|
|
}
|
|
|
}
|