fix(NocoDB Node): Add warning level to loadOptions errors (no-changelog) (#10032)

This commit is contained in:
Jon 2024-07-12 12:04:12 +01:00 committed by GitHub
parent 4aa60c6145
commit 293147642f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -238,6 +238,9 @@ export class NocoDB implements INodeType {
new Error(`Error while fetching ${version === 3 ? 'bases' : 'projects'}!`, {
cause: e,
}),
{
level: 'warning',
},
);
}
},
@ -258,12 +261,18 @@ export class NocoDB implements INodeType {
throw new NodeOperationError(
this.getNode(),
new Error('Error while fetching tables!', { cause: e }),
{
level: 'warning',
},
);
}
} else {
throw new NodeOperationError(
this.getNode(),
`No ${version === 3 ? 'base' : 'project'} selected!`,
{
level: 'warning',
},
);
}
},