nd switch the error to a successful result.</p>
        <ol class="arabic">
          <li>
            The worker logic should stop:
            <pre class="keep-together pdf epub"><code class="nohighlight"><span>..
.</span><span class="identifier">mapError</span><span>: </span><span class="identifier">err</span><span> =&gt;
    </span><span class="type-name">CustomError</span><span>(
      </span><span class="string-literal">s&quot;Error while checking client: </span><span class="substitution">${err.errorM