Pass NodeApiError to ContinueOnFail output

The idea is:

When I set a node to continue on fail I only get the error message as an output. It would be very useful to also get the other error details which now I can see on manual run and when the ContinueOnFail option is off.

Edit:

The idea is:

To be able to get additional details about errors that occur in the workflows from their executions.

My use case:

At manual run I can see the NodeApiError details. On automatic execution or with ContinueOnFail option turned on, I can get only the error message as an output.

I think it would be beneficial to add this because:

It would be very useful to know what failed the execution (not only to get the message but get the whole returned object and the status). Then there can be checks and depending on the reason, different actions can be triggered.
We’ve experienced the need for more details with a few nodes now.

Any resources to support this?

For example currently for a node we get the error message like:

{
  error: "404 - {"status":404,"title":"Not Found","detail":"No payment exists with token asd.","_links":{"documentation":{"href":"https://docs.mollie.com/overview/handling-errors","type":"text/html"}}}"
} 

The whole error object looks like:

{
  message: "404 - {"status":404,"title":"Not Found","detail":"No payment exists with token asd.","_links":{"documentation":{"href":"https://docs.mollie.com/overview/handling-errors","type":"text/html"}}}",
  name: "Error",
  stack: "Error: Request failed with status code 404 at createError (/proj/n8n_install/node_modules/axios/lib/core/createError.js:16:15) at settle (/proj/n8n_install/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/proj/n8n_install/node_modules/axios/lib/adapters/http.js:269:11) at IncomingMessage.emit (events.js:412:35) at endReadableNT (internal/streams/readable.js:1334:12) at processTicksAndRejections (internal/process/task_queues.js:82:21)"
} 

In the perfect scenario I want to map the error “message” to “title”, description to “detail” and also get the other details which get displayed when the node fails on manual run like:

{
  error: {
    message: "Not Found",
    description: "No payment exists with token asd.",
    time: "...",
    httpCode: "404",
    cause: {
      {
        status: 404,
        title: "Not Found",
        detail: "No payment exists with token asd.",
        _links: {
          documentation: {
            href: "https://docs.mollie.com/overview/handling-errors",
            type: "text/html"
          },
        },
      },
    },
    stack: "Error: Request failed with status code 404 at createError (/proj/n8n_install/node_modules/axios/lib/core/createError.js:16:15) at settle (/proj/n8n_install/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/proj/n8n_install/node_modules/axios/lib/adapters/http.js:269:11) at IncomingMessage.emit (events.js:412:35) at endReadableNT (internal/streams/readable.js:1334:12) at processTicksAndRejections (internal/process/task_queues.js:82:21)"
  }
} 

Are you willing to work on this?

I’m possibly able to work on it but I’m not aware of how it can be handled.

I don’t know why this isn’t already a thing. I’ve been trying to figure out how to respond to we webhook call with this information other wise the webhook response on error is pretty useless. Found this feature request trying to figure this out.