Raise error on parsing errors (#1987)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# 1.5.0-beta.x
|
||||
|
||||
- Add proper support for type generation with an Enum containing an Tuple (Thanks to https://github.com/monitz87)
|
||||
- Fix storage parsing not resulting in rejected Promises (Fix from https://github.com/aniiantt applied)
|
||||
- Type generation will now handle the same sub-module name across packages, i.e. `@polkadot/types/interfaces/runtime` & `@mine/interfaces/runtime`)
|
||||
- Add `.range([from, to]: [Hash, Hash?], ...args: any[]): [Hash, Codec][]` on all storage entries
|
||||
- Allow `BTreeMap` to be initialized with a `Record<string, any>` object (in addition to `Map`)
|
||||
|
||||
@@ -253,7 +253,11 @@ export default class Rpc implements RpcInterface {
|
||||
return;
|
||||
}
|
||||
|
||||
observer.next(this.formatOutput(method, params, result));
|
||||
try {
|
||||
observer.next(this.formatOutput(method, params, result));
|
||||
} catch (error) {
|
||||
observer.error(error);
|
||||
}
|
||||
};
|
||||
|
||||
subscriptionPromise = this.createSubscriber({ subType, subName, paramsJson, update }, errorHandler);
|
||||
|
||||
Reference in New Issue
Block a user