mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-21 14:04:03 +01:00
chore: details in error
This commit is contained in:
parent
ac2349c60c
commit
a03a13a062
1 changed files with 3 additions and 2 deletions
|
@ -58,9 +58,10 @@ export const getAuthLnd = (auth: string) => {
|
|||
return lnd;
|
||||
};
|
||||
|
||||
export const getErrorMsg = (error: any): string => {
|
||||
export const getErrorMsg = (error: any[]): string => {
|
||||
const code = error[0];
|
||||
const msg = error[1];
|
||||
const details = error.length > 2 ? error[2].details : '';
|
||||
|
||||
return JSON.stringify({ code, msg });
|
||||
return JSON.stringify({ code, msg, details });
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue