mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Custom workflow tool tweaks (#8561)
This commit is contained in:
@@ -189,10 +189,9 @@ export class ToolCode implements INodeType {
|
||||
|
||||
if (typeof response !== 'string') {
|
||||
// TODO: Do some more testing. Issues here should actually fail the workflow
|
||||
executionError = new NodeOperationError(
|
||||
this.getNode(),
|
||||
`The code did not return a valid value. Instead of a string did a value of type '${typeof response}' get returned.`,
|
||||
);
|
||||
executionError = new NodeOperationError(this.getNode(), 'Wrong output type returned', {
|
||||
description: `The response property should be a string, but it is an ${typeof response}`,
|
||||
});
|
||||
response = `There was an error: "${executionError.message}"`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user