rpc error logging for setup wiz

This commit is contained in:
Matt Hill
2021-11-11 10:55:30 -07:00
committed by Aiden McClelland
parent e2d932f483
commit 21a21444ce

View File

@@ -34,7 +34,10 @@ export class HttpService {
res = await this.httpRequest<RPCResponse<T>>(httpOpts)
}
if (isRpcError(res)) throw new RpcError(res.error)
if (isRpcError(res)) {
console.error('RPC ERROR: ', res)
throw new RpcError(res.error)
}
if (isRpcSuccess(res)) return res.result
}