function showVideoErr(err) {
  debug(err);
  debug("Showing Error");
  anim.destroy();
  videoPlayerInstance.destroy();
  videoPlayer.style.display = "none";
  overlay.style.display = "none";
  error.textContent = err;
  error.style.display = "block";
  makeButton.style.display = "none";
  restart.style.display = "block";
  restartButton.textContent = "Try Again";
}
/**
 * showVideoErr - Displayed when an error occurs. Destroys the animation and provides a
 * restart button.
 *
 * @param {string} err The error that occurred
 */
Displayed when an error occurs. Destroys the animation and provides a
restart button.

@param {string} err The error that occurred
Displayed when an error occurs . Destroys the animation and provides a restart button . @param { string } err The error that occurred
function showVideoErr(err) {
  debug(err);
  debug("Showing Error");
  anim.destroy();
  videoPlayerInstance.destroy();
  videoPlayer.style.display = "none";
  overlay.style.display = "none";
  error.textContent = err;
  error.style.display = "block";
  makeButton.style.display = "none";
  restart.style.display = "block";
  restartButton.textContent = "Try Again";
}
function showVideoErr ( err ) { debug ( err ) ; debug ( "Showing Error" ) ; anim . destroy ( ) ; videoPlayerInstance . destroy ( ) ; videoPlayer . style . display = "none" ; overlay . style . display = "none" ; error . textContent = err ; error . style . display = "block" ; makeButton . style . display = "none" ; restart . style . display = "block" ; restartButton . textContent = "Try Again" ; }
showVideoErr - Displayed when an error occurs.
showVideoErr - Displayed when an error occurs .