Raise error on parsing errors (#1987)

This commit is contained in:
Jaco Greeff
2020-03-02 09:09:27 +01:00
committed by GitHub
parent 0d58c77de0
commit af1a3385cc
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -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`)
+5 -1
View File
@@ -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);