Catching errors in gh-pages