refactor(Airtable Node): Prevent reporting to Sentry failure to find table (no-changelog) (#7521)

https://n8nio.sentry.io/issues/4356342982/?project=4503924908883968&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=14d&stream_index=8
This commit is contained in:
Iván Ovejero 2023-10-26 12:02:23 +02:00 committed by GitHub
parent d885daa6a1
commit a277807404
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 4 deletions

View file

@ -118,7 +118,9 @@ export async function viewSearch(
});
if (!tableData) {
throw new NodeOperationError(this.getNode(), 'Table information could not be found!');
throw new NodeOperationError(this.getNode(), 'Table information could not be found!', {
severity: 'warning',
});
}
if (filter) {

View file

@ -20,7 +20,9 @@ export async function getColumns(this: ILoadOptionsFunctions): Promise<INodeProp
});
if (!tableData) {
throw new NodeOperationError(this.getNode(), 'Table information could not be found!');
throw new NodeOperationError(this.getNode(), 'Table information could not be found!', {
severity: 'warning',
});
}
const result: INodePropertyOptions[] = [];
@ -79,7 +81,9 @@ export async function getAttachmentColumns(
});
if (!tableData) {
throw new NodeOperationError(this.getNode(), 'Table information could not be found!');
throw new NodeOperationError(this.getNode(), 'Table information could not be found!', {
severity: 'warning',
});
}
const result: INodePropertyOptions[] = [];

View file

@ -78,7 +78,9 @@ export async function getColumns(this: ILoadOptionsFunctions): Promise<ResourceM
});
if (!tableData) {
throw new NodeOperationError(this.getNode(), 'Table information could not be found!');
throw new NodeOperationError(this.getNode(), 'Table information could not be found!', {
severity: 'warning',
});
}
const fields: ResourceMapperField[] = [];