implement error handler for theme bootstrap script