Skip to content

Commit 8df2c15

Browse files
committed
Fix error name
1 parent a724522 commit 8df2c15

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,10 @@ ZongJi.prototype.start = function (options = {}) {
248248
try {
249249
event.updateColumnInfo();
250250
} catch (error) {
251-
const error = new Error('Historical event received with unrecoverable schema changes.', { cause: err });
252-
this.emit('error', error);
251+
const schemaError = new Error('Historical event received with unrecoverable schema changes.', {
252+
cause: err
253+
});
254+
this.emit('error', schemaError);
253255
return;
254256
}
255257
this.emit('binlog', event);

0 commit comments

Comments
 (0)