function printResultFor(op) {
  return function printResult(err, res) {
    if (err) console.log(op + ' error: ' + err.toString());
    if (res && (res.statusCode !== 204)) console.log(op + ' status: ' + res.statusCode + ' ' + res.statusMessage);
  };
}
// Helper function to print results in the console
Helper function to print results in the console
Helper function to print results in the console
function printResultFor(op) {
  return function printResult(err, res) {
    if (err) console.log(op + ' error: ' + err.toString());
    if (res && (res.statusCode !== 204)) console.log(op + ' status: ' + res.statusCode + ' ' + res.statusMessage);
  };
}
function printResultFor ( op ) { return function printResult ( err , res ) { if ( err ) console . log ( op + ' error: ' + err . toString ( ) ) ; if ( res && ( res . statusCode !== 204 ) ) console . log ( op + ' status: ' + res . statusCode + ' ' + res . statusMessage ) ; } ; }
Helper function to print results in the console
Helper function to print results in the console