mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +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.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