Skip to content

← All questions

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

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

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?

1 answer

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related