mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-03-15 07:20:49 +00:00
fix error prototype (#45)
This commit is contained in:
parent
8c372cd0c8
commit
2d46fd47f1
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user