mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
error details
This commit is contained in:
committed by
Aiden McClelland
parent
a17e81ece5
commit
72872ba52a
@@ -79,10 +79,10 @@ function RpcError (e: RPCError['error']): void {
|
|||||||
this.code = code
|
this.code = code
|
||||||
this.message = message
|
this.message = message
|
||||||
|
|
||||||
if (typeof data === 'string') {
|
if (typeof data !== 'string') {
|
||||||
this.details = e.data
|
|
||||||
} else {
|
|
||||||
this.details = data.details
|
this.details = data.details
|
||||||
|
} else {
|
||||||
|
this.details = data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user