docs: function promiseWithError( result, callback) {
          var deferred = Q.defer();
          deferred.resolve(result);
          if ( typeof callback === 'function' ) {
              callback(null, result);
          }
          return deferred.promise;
      }