fix error prototype (#45)

This commit is contained in:
Pavel 2021-04-27 17:50:53 +03:00 committed by GitHub
parent 8c372cd0c8
commit 2d46fd47f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,8 +55,11 @@ export interface FluenceConnectionOptions {
}
export class VersionIncompatibleError extends Error {
__proto__: Error;
constructor() {
const trueProto = new.target.prototype;
super('Current version of JS SDK is incompatible with the connected Fluence node. Please update JS SDK');
this.__proto__ = trueProto;
}
}