title: Bluebird Promise: error is not a function
body: <p>For some reason that I can't find out, this simple piece of code doesn't work.</p>
  
  <pre><code>new Promise(function (resolve, reject) {
    resolve();
  }).then(function() {
    console.log("then: ")
  }).error(function(err) {
    console.log("err: ", err)
  })
  </code></pre>
  
  <p>It gives me</p>
  
  <pre><code>Uncaught TypeError: (intermediate value).then(...).error is not a function
  </code></pre>
  
  <p>If I replace <code>error</code> with <code>catch</code>, it runs fine. I would prefer not to catch though.</p>
  
  <p>What am I missing here?</p>