mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
⚡ Improve Wise error message after previous change
This commit is contained in:
parent
f350b9e1c0
commit
af09bf8e6a
|
@ -108,7 +108,7 @@ export async function wiseApiRequest(
|
|||
throw new NodeApiError(this.getNode(), {message: 'SCA request failed, check your private key is valid'});
|
||||
}
|
||||
} else {
|
||||
throw new NodeApiError(this.getNode(), {headers: response.headers, body: response.body},);
|
||||
throw new NodeApiError(this.getNode(), { ...response, message: response.statusMessage });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue