title: Why is `.catch(err => console.error(err))` discouraged?
body: <p>I'm using promises and have code that looks like the following:</p>
  
  <pre><code>function getStuff() { 
    return fetchStuff().then(stuff =&gt; 
      process(stuff)
    ).catch(err =&gt; {
      console.error(err);
    });
  }
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>async function getStuff() { 
    try {
      const stuff = await fetchStuff();
      return process(stuff);
    } catch (err) { 
      console.error(err);
    }
  }
  </code></pre>
  
  <p>I was doing this to avoid missing on errors but was told by a fellow user that I shouldn't be doing this and it is frowned upon.</p>
  
  <ul>
  <li>What's wrong with <code>return ….catch(err =&gt; console.error(err))</code>?</li>
  <li>I've seen a lot of code that does this, why?</li>
  <li>What should I do instead?</li>
  </ul>