mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Fix variable naming error
This commit is contained in:
@@ -162,8 +162,8 @@ export async function apiRequest(this: IHookFunctions | IExecuteFunctions | ILoa
|
|||||||
|
|
||||||
if (error.response && error.response.body && error.response.body.error_code) {
|
if (error.response && error.response.body && error.response.body.error_code) {
|
||||||
// Try to return the error prettier
|
// Try to return the error prettier
|
||||||
const airtableError = error.response.body;
|
const errorBody = error.response.body;
|
||||||
throw new Error(`Telegram error response [${airtableError.error_code}]: ${airtableError.description}`);
|
throw new Error(`Telegram error response [${errorBody.error_code}]: ${errorBody.description}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Expected error data did not get returned so throw the actual error
|
// Expected error data did not get returned so throw the actual error
|
||||||
|
|||||||
Reference in New Issue
Block a user