Remove ExtError from use (removed from util)

This commit is contained in:
Jaco Greeff
2019-09-10 17:55:02 +02:00
parent 0096d17f2f
commit bdd0cb9d9a
8 changed files with 31 additions and 31 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ import { catchError, map, publishReplay, refCount, switchMap } from 'rxjs/operat
import interfaces from '@polkadot/jsonrpc';
import { ClassOf, Option, StorageData, StorageKey, Vec, createClass } from '@polkadot/types';
import { createTypeUnsafe } from '@polkadot/types/codec';
import { ExtError, assert, isFunction, isNull, isNumber, logger } from '@polkadot/util';
import { assert, isFunction, isNull, isNumber, logger } from '@polkadot/util';
const l = logger('rpc-core');
@@ -163,7 +163,7 @@ export default class Rpc implements RpcInterface {
l.error(message);
return throwError(new ExtError(message, (error as ExtError).code, undefined));
return throwError(new Error(message));
}),
publishReplay(1), // create a Replay(1)
refCount() // Unsubcribe WS when there are no more subscribers
@@ -191,7 +191,7 @@ export default class Rpc implements RpcInterface {
l.error(message);
observer.error(new ExtError(message, (error as ExtError).code, undefined));
observer.error(new Error(message));
};
try {