Przeglądaj źródła

Update page load error message

Jasper van Merle 6 lat temu
rodzic
commit
fb2d7374da

+ 1 - 0
.gitignore

@@ -6,3 +6,4 @@ public/fonts
 public/docs/**/*
 docs/**/*
 !docs/*.md
+log

+ 1 - 1
assets/javascripts/templates/error_tmpl.coffee

@@ -12,7 +12,7 @@ app.templates.notFoundPage = ->
 
 app.templates.pageLoadError = ->
   error """ The page failed to load. """,
-        """ It may be missing from the server (try reloading the app) or you could be offline.<br>
+        """ It may be missing from the server (try reloading the app) or you could be offline (try <a href="/offline">installing the documentation for offline usage</a> when online again).<br>
             If you keep seeing this, you're likely behind a proxy or firewall that blocks cross-domain requests. """,
         """ #{back} &middot; <a href="/##{location.pathname}" target="_top" class="_error-link">Reload</a>
             &middot; <a href="#" class="_error-link" data-retry>Retry</a> """

+ 0 - 14
log/newrelic_agent.log

@@ -1,14 +0,0 @@
-# Logfile created on 2019-07-10 22:09:26 +0200 by logger.rb/66358
-[2019-07-10 22:09:26 +0200 Jasper-PC (9163)] INFO : Starting the New Relic agent version 5.7.0.350 in "production" environment.
-[2019-07-10 22:09:26 +0200 Jasper-PC (9163)] INFO : To prevent agent startup add a NEW_RELIC_AGENT_ENABLED=false environment variable or modify the "production" section of your newrelic.yml.
-[2019-07-10 22:09:26 +0200 Jasper-PC (9163)] INFO : Reading configuration from newrelic.yml (/home/jasper/Projects/devdocs)
-[2019-07-10 22:09:26 +0200 Jasper-PC (9163)] ERROR : No application name configured.
-[2019-07-10 22:09:26 +0200 Jasper-PC (9163)] ERROR : The Agent cannot start without at least one. Please check your 
-[2019-07-10 22:09:26 +0200 Jasper-PC (9163)] ERROR : newrelic.yml and ensure that it is valid and has at least one 
-[2019-07-10 22:09:26 +0200 Jasper-PC (9163)] ERROR : value set for app_name in the production 
-[2019-07-10 22:09:26 +0200 Jasper-PC (9163)] ERROR : environment.
-[2019-07-10 22:09:26 +0200 Jasper-PC (9163)] INFO : Installing Sinatra instrumentation
-[2019-07-10 22:09:26 +0200 Jasper-PC (9163)] INFO : Installing Net instrumentation
-[2019-07-10 22:09:26 +0200 Jasper-PC (9163)] INFO : Installing deferred Rack::Builder instrumentation
-[2019-07-10 22:09:26 +0200 Jasper-PC (9163)] INFO : Installing Rack::Builder middleware instrumentation
-[2019-07-10 22:09:26 +0200 Jasper-PC (9163)] INFO : Finished instrumentation