mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
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:
@@ -140,7 +140,7 @@ export class Shopify implements INodeType {
|
||||
const shipping = additionalFields.shippingAddressUi as IDataObject;
|
||||
const lineItem = (this.getNodeParameter('limeItemsUi', i) as IDataObject).lineItemValues as IDataObject[];
|
||||
if (lineItem === undefined) {
|
||||
throw new NodeOperationError(this.getNode(), 'At least one line item has to be added');
|
||||
throw new NodeOperationError(this.getNode(), 'At least one line item has to be added', { itemIndex: i });
|
||||
}
|
||||
const body: IOrder = {
|
||||
test: true,
|
||||
|
||||
Reference in New Issue
Block a user