mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(core): Deduplicate error handling in nodes (#4319)
* Fix issue with isAxios property * 🥅 Deduplicate errors handeling improve errors for credentials * 🎨 correctly throws error
This commit is contained in:
@@ -42,11 +42,7 @@ export async function cortexApiRequest(
|
||||
delete options.qs;
|
||||
}
|
||||
|
||||
try {
|
||||
return await this.helpers.requestWithAuthentication.call(this, 'cortexApi', options);
|
||||
} catch (error) {
|
||||
throw new NodeApiError(this.getNode(), error);
|
||||
}
|
||||
return await this.helpers.requestWithAuthentication.call(this, 'cortexApi', options);
|
||||
}
|
||||
|
||||
export function getEntityLabel(entity: IDataObject): string {
|
||||
|
||||
Reference in New Issue
Block a user