diff --git a/packages/nodes-base/nodes/WriteBinaryFile.node.ts b/packages/nodes-base/nodes/WriteBinaryFile.node.ts index faabd99475477..2bcb8f8e9bce3 100644 --- a/packages/nodes-base/nodes/WriteBinaryFile.node.ts +++ b/packages/nodes-base/nodes/WriteBinaryFile.node.ts @@ -60,11 +60,11 @@ export class WriteBinaryFile implements INodeType { const fileName = this.getNodeParameter('fileName') as string; if (item.binary === undefined) { - return item; + throw new Error('No binary data set. So file can not be written!'); } if (item.binary[dataPropertyName] === undefined) { - return item; + throw new Error(`The binary property "${dataPropertyName}" does not exist. So no file can be written!`); } // Write the file to disk