mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
rpc error logging for setup wiz
This commit is contained in:
committed by
Aiden McClelland
parent
e2d932f483
commit
21a21444ce
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user