Fixed infinite #clowntown error loop

This commit is contained in:
Nick Lockwood committed 2015-05-14 12:19:15 -08:00
1 parent 766983f69b
commit 7c3070628a
2 files changed
+23 -4

No files matched your search

@@ -48,8 +48,10 @@ function reportException(e: Exception, isFatal: bool, stack?: any) {
var prettyStack = parseErrorStack(e, map);
RCTExceptionsManager.updateExceptionMessage(e.message, prettyStack);
})
.then(null, error => {
console.error('#CLOWNTOWN (error while displaying error): ' + error.message);
.catch(error => {
// This can happen in a variety of normal situations, such as
// Network module not being available, or when running locally
console.warn('Unable to load source map: ' + error.message);
});
}
}