lufo-cli/src/lufo.js
function (obj) {
  printHelpOnExit = false;
  if (_.isError(obj)) {
    console.error(obj);
  } else {
    console.error(`ERROR: ${obj.toString()}`);
  }
  if (theUfo) theUfo.disconnect();
  process.exitCode = 1;
}
function (obj) {
  printHelpOnExit = false;
  if (_.isError(obj)) {
    console.error(obj);
  } else {
    console.error(`ERROR: ${obj.toString()}`);
  }
  if (theUfo) theUfo.disconnect();
  process.exitCode = 1;
}
function ( obj ) { printHelpOnExit = false ; if ( _ . isError ( obj ) ) { console . error ( obj ) ; } else { console . error ( ` ${ obj . toString ( ) } ` ) ; } if ( theUfo ) theUfo . disconnect ( ) ; process . exitCode = 1 ; }
Helper function for printing errors and setting the exit code.
Helper function for printing errors and setting the exit code .