mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Google BigQuery Node): Better error messages, transform timestamps (#9255)
Co-authored-by: Jonathan Bennetts <jonathan.bennetts@gmail.com>
This commit is contained in:
@@ -249,10 +249,16 @@ export async function execute(this: IExecuteFunctions): Promise<INodeExecutionDa
|
||||
returnData.push(...executionErrorData);
|
||||
continue;
|
||||
}
|
||||
if ((error.message as string).includes('location')) {
|
||||
if ((error.message as string).includes('location') || error.httpCode === '404') {
|
||||
error.description =
|
||||
"Are you sure your table is in that region? You can specify the region using the 'Location' parameter from options.";
|
||||
}
|
||||
|
||||
if (error.httpCode === '403' && error.message.includes('Drive')) {
|
||||
error.description =
|
||||
'If your table(s) pull from a document in Google Drive, make sure that document is shared with your user';
|
||||
}
|
||||
|
||||
throw new NodeOperationError(this.getNode(), error as Error, {
|
||||
itemIndex: i,
|
||||
description: error.description,
|
||||
|
||||
Reference in New Issue
Block a user