Howto : pass my catch error message to the error workflow?

In a Function Node, I would like to pass a message built in a catch block of a try one to my error WF (which already contains execution.url, workflow.name, etc …)
… and force an error to be sure that my error WF is fired

You can simply throw a new error in your catch block. That one will then be sent to the error workflow.

Example:

throw new Error('my own error message');

Thanks jan, it didn’t work because I only used throw "my message ....' :no_mouth: