error details

This commit is contained in:
Drew Ansbacher
2021-09-30 13:04:05 -06:00
committed by Aiden McClelland
parent a17e81ece5
commit 72872ba52a

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
}
}