mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(NocoDB Node): Add warning level to loadOptions errors (no-changelog) (#10032)
This commit is contained in:
parent
4aa60c6145
commit
293147642f
|
@ -238,6 +238,9 @@ export class NocoDB implements INodeType {
|
||||||
new Error(`Error while fetching ${version === 3 ? 'bases' : 'projects'}!`, {
|
new Error(`Error while fetching ${version === 3 ? 'bases' : 'projects'}!`, {
|
||||||
cause: e,
|
cause: e,
|
||||||
}),
|
}),
|
||||||
|
{
|
||||||
|
level: 'warning',
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -258,12 +261,18 @@ export class NocoDB implements INodeType {
|
||||||
throw new NodeOperationError(
|
throw new NodeOperationError(
|
||||||
this.getNode(),
|
this.getNode(),
|
||||||
new Error('Error while fetching tables!', { cause: e }),
|
new Error('Error while fetching tables!', { cause: e }),
|
||||||
|
{
|
||||||
|
level: 'warning',
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new NodeOperationError(
|
throw new NodeOperationError(
|
||||||
this.getNode(),
|
this.getNode(),
|
||||||
`No ${version === 3 ? 'base' : 'project'} selected!`,
|
`No ${version === 3 ? 'base' : 'project'} selected!`,
|
||||||
|
{
|
||||||
|
level: 'warning',
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue