function printErrorFor(op) {
  return function printError(err) {
    if (err) console.log(op + ' error: ' + err.toString());
  };
}
// Helper function to print results for an operation
Helper function to print results for an operation
Helper function to print results for an operation
function printErrorFor(op) {
  return function printError(err) {
    if (err) console.log(op + ' error: ' + err.toString());
  };
}
function printErrorFor ( op ) { return function printError ( err ) { if ( err ) console . log ( op + ' error: ' + err . toString ( ) ) ; } ; }
Helper function to print results for an operation
Helper function to print results for an operation