mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(NocoDB Node): Add warning level to loadOptions errors (no-changelog) (#10032)
This commit is contained in:
@@ -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',
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user