error details

This commit is contained in:
Drew Ansbacher
2021-09-30 13:04:05 -06:00
committed by Drew Ansbacher
parent 8b4401282f
commit 6843e99c3a

View File

@@ -79,10 +79,10 @@ function RpcError (e: RPCError['error']): void {
this.code = code
this.message = message
if (typeof data === 'string') {
this.details = e.data
} else {
if (typeof data !== 'string') {
this.details = data.details
} else {
this.details = data
}
}