title: How to break current NodeRED flow?
body: <p>I've created a custom node, which calls some GET requests with includes some async functions. I am throwing <code>node.error()</code> in the first function then the other functions, which depend on the first one, also throw an <code>node.error()</code>. My question is: How is it possible to skip the rest of the code, so that there is no other function calling and no further errors?</p>
  
  <p>This is for the currently latest version of NodeRED <code>v0.20.7</code>. I've tried to throw an Error, but this breaks/stops the whole server.</p>
  
  <pre><code>var jsonData, keycount;
  await getJSONContent(plusURL)
    .then((data) =&gt; {
      jsonData = JSON.parse(data);
      keycount = Object.keys(jsonData).length;
    })
    .catch((e) =&gt; {
      node.error(e); //want to break after this error message
    });
  
  //Getting undefined, because function threw error
  var itemNumber = getItemNumber(jsonData, keycount, config.name);
  
  </code></pre>
  
  <p>I wanted to break after the error message, so that NodeRED doesn`t send further error message.</p>