mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
error details
This commit is contained in:
committed by
Drew Ansbacher
parent
8b4401282f
commit
6843e99c3a
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user