lib/core/src/client/preview/start.js
function showException(exception) {
  addons.getChannel().emit(Events.STORY_THREW_EXCEPTION, exception);
  showErrorDisplay(exception);

  // Log the stack to the console. So, user could check the source code.
  logger.error(exception.stack);
}
function showException(exception) {
  addons.getChannel().emit(Events.STORY_THREW_EXCEPTION, exception);
  showErrorDisplay(exception);

  // Log the stack to the console. So, user could check the source code.
  logger.error(exception.stack);
}
function showException ( exception ) { addons . getChannel ( ) . emit ( Events . STORY_THREW_EXCEPTION , exception ) ; showErrorDisplay ( exception ) ; // Log the stack to the console. So, user could check the source code. logger . error ( exception . stack ) ; }
showException is used if we fail to render the story and it is uncaught by the app layer
showException is used if we fail to render the story and it is uncaught by the app layer