Ensure exceptions from route generation are reported

Reviewed By: swarr

Differential Revision: D2631395

fb-gh-sync-id: cf59a290a4b447122c36ec20176b563a38bee630
This commit is contained in:
Pieter De Baets 2015-11-09 09:12:19 -08:00 committed by facebook-github-bot-5
parent 0b5b0f9016
commit 478a712d20

View File

@ -71,6 +71,10 @@ function polyfillGlobal(name, newValue, scope=GLOBAL) {
}
function setUpErrorHandler() {
if (global.__fbDisableExceptionsManager) {
return;
}
function handleError(e, isFatal) {
try {
require('ExceptionsManager').handleException(e, isFatal);