Răsfoiți Sursa

Add an error handler to Raven loader.

This should allow app to continue to work if loading Raven
times out.
Shane Kilkelly 9 ani în urmă
părinte
comite
a4992891d0
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      services/web/app/views/sentry.pug

+ 2 - 0
services/web/app/views/sentry.pug

@@ -72,6 +72,8 @@
 				// whitelistUrls: ['example.com/scripts/']
 				}).install();
 			}
+		}, function(err) {
+			console.log(">> error loading raven", err);
 		})
 	- if (user && typeof(user) != "undefined" && typeof (user.email) != "undefined")
 		script(type="text/javascript").