function handlePercyFailure(error) {
  isPercyEnabled = false;
  console.error(
      `[percy][ERROR] API call failed, Percy has been disabled 
      for this build. ${error.toString()}`);
  process.exit(2);
}
/**
 * Displays the error in the console and exits with a non-zero exit code to
 * trigger a failed build message in CI.
 * @param {string} error
 */
Displays the error in the console and exits with a non-zero exit code to
trigger a failed build message in CI.
@param {string} error
Displays the error in the console and exits with a non - zero exit code to trigger a failed build message in CI . @param { string } error
function handlePercyFailure(error) {
  isPercyEnabled = false;
  console.error(
      `[percy][ERROR] API call failed, Percy has been disabled 
      for this build. ${error.toString()}`);
  process.exit(2);
}
function handlePercyFailure ( error ) { isPercyEnabled = false ; console . error ( ` ${ error . toString ( ) } ` ) ; process . exit ( 2 ) ; }
Displays the error in the console and exits with a non-zero exit code to
 trigger a failed build message in CI.
Displays the error in the console and exits with a non - zero exit code to trigger a failed build message in CI .