mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Improve Wise error message after previous change
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user