Skip to content

← All questions

Is a healing failure a SdodsHealError or a SdodsError? The docs disagree with the output

Asked 5,340 views1 answer

We catch SDODS errors in a small wrapper to add our own reporting. The self-healing guide's resolution diagram ends at a node labelled SdodsHealError, so I wrote:

ts
if (err.constructor.name === 'SdodsHealError') { /* ... */ }

which never fires. What we actually get is a SdodsError. Which one is right?

asked by Sergio Alcaraz415 ·

1 answer

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related