why not `boundaries.onError(window.console.log);`, removing  `function logError(e)` ?