code: function(err, result) {
        if (err && !util.isError(err)) {
          err = new Error(err);
        }
        if (callback) callback(err, result);
      }
docs: stub callback to ensure we always return an Error object