var q = require('q');
var deferred = q.defer();
deferred.promise.then(null, function(err) {
  console.log(err.message);
});

setTimeout(deferred.reject, 300, new Error("REJECTED!"));

Complete 'Reject a promise' challenge in 'Promise it won't hurt' tutorial
Complete 'Reject a promise' challenge in 'Promise it won't hurt' tutorial
