lib/ironcache.js
function handleResponse(done, err, response, body) {
  if (err) return done(err, null);
  if (response.statusCode !== 200) return done(new Error(body.msg || 'Unknown error'), null);

  done(null, body);
}
function handleResponse(done, err, response, body) {
  if (err) return done(err, null);
  if (response.statusCode !== 200) return done(new Error(body.msg || 'Unknown error'), null);

  done(null, body);
}
function handleResponse ( done , err , response , body ) { if ( err ) return done ( err , null ) ; if ( response . statusCode !== 200 ) return done ( new Error ( body . msg || 'Unknown error' ) , null ) ; done ( null , body ) ; }
Generic handler for API responses. Includes default error handling.
Generic handler for API responses . Includes default error handling .