mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-23 20:50:00 +00:00
fix(Google Sheets Trigger Node): Return actual error message
This commit is contained in:
@@ -133,9 +133,9 @@ export async function apiRequest(
|
||||
}
|
||||
|
||||
if (error.message.includes('PERMISSION_DENIED')) {
|
||||
const message = 'Missing permissions for Google Sheet';
|
||||
const description =
|
||||
"Please check that the account you're using has the right permissions. (If you're trying to modify the sheet, you'll need edit access.)";
|
||||
const message = `Missing permissions for Google Sheet, ${error.message}}`;
|
||||
const details = error.description ? ` Details of the error: ${error.description}.` : '';
|
||||
const description = `Please check that the account you're using has the right permissions. (If you're trying to modify the sheet, you'll need edit access.)${details}`;
|
||||
throw new NodeApiError(this.getNode(), error as JsonObject, { message, description });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user