feat: Add item information to more node errors (#3681)
* ⚡ Add `itemIndex` to node-thrown errors * ⚡ Add some missing item indexes
This commit is contained in:
@@ -382,7 +382,7 @@ export class MessageBird implements INodeType {
|
||||
});
|
||||
}
|
||||
else {
|
||||
throw new NodeOperationError(this.getNode(), `The operation "${operation}" is not known!`);
|
||||
throw new NodeOperationError(this.getNode(), `The operation "${operation}" is not known!`, { itemIndex: i });
|
||||
}
|
||||
|
||||
} else if (resource === 'balance') {
|
||||
@@ -390,7 +390,7 @@ export class MessageBird implements INodeType {
|
||||
requestPath = '/balance';
|
||||
}
|
||||
else {
|
||||
throw new NodeOperationError(this.getNode(), `The resource "${resource}" is not known!`);
|
||||
throw new NodeOperationError(this.getNode(), `The resource "${resource}" is not known!`, { itemIndex: i });
|
||||
}
|
||||
|
||||
const responseData = await messageBirdApiRequest.call(
|
||||
|
||||
Reference in New Issue
Block a user