Bug 1150052: report exceptions that occur in MozLoop object APIs directly to the console, so we'll be able to recognize errors better. r=Standard8

This commit is contained in:
Mike de Boer 2015-04-02 15:28:45 +02:00
parent 7e1fd890cd
commit 6b09a29fc4

View File

@ -172,6 +172,7 @@ const injectObjectAPI = function(api, targetWindow) {
lastParam = cloneValueInto(lastParam, api);
return cloneValueInto(api[func](...params, lastParam), targetWindow);
} catch (ex) {
MozLoopService.log.error(func + " error: ", ex, params, lastParam);
return cloneValueInto(ex, targetWindow);
}
}