bin/swagger-cli.js
function errorHandler (err) {
  let errorMessage = process.env.DEBUG ? err.stack : err.message;
  console.error(chalk.red(errorMessage));
  process.exit(1);
}
function errorHandler (err) {
  let errorMessage = process.env.DEBUG ? err.stack : err.message;
  console.error(chalk.red(errorMessage));
  process.exit(1);
}
function errorHandler ( err ) { let errorMessage = process . env . DEBUG ? err . stack : err . message ; console . error ( chalk . red ( errorMessage ) ) ; process . exit ( 1 ) ; }
Writes error information to stderr and exits with a non-zero code

@param {Error} err
Writes error information to stderr and exits with a non - zero code