title: Unhandled rejection error Bluebird
body: <p>I have the following code.
  And it works as expected without throwing a unhandled rejection error.</p>
  
  <pre class="lang-coffiescript prettyprint-override"><code>p = new Promise (fulfill, reject) -&gt;
    reject new Error 'some error'
  
  p.catch (error) -&gt;
    console.log error
  </code></pre>
  
  
  
  <p>Now, the second code example does throw an unhandled rejection error.
  Can someone explain to me why this is happening when im clearly handling the error.</p>
  
  <pre class="lang-coffiescript prettyprint-override"><code>p = new Promise (fulfill, reject) -&gt;
    reject new Error 'some error'
  
  p.then -&gt;
    console.log 'ok'
  
  p.catch (error) -&gt;
    console.log error
  </code></pre>
  
  
  
  <p>Btw. I'm testing in chrome and bluebird v3.4.7</p>