Github user riknoll commented on a diff in the pull request: https://github.com/apache/cordova-cli/pull/242#discussion_r58285316 --- Diff: src/cli.js --- @@ -60,13 +60,23 @@ function init() { } function checkForUpdates() { - // Checks for available update and returns an instance - var notifier = updateNotifier({ - pkg: pkg - }); + try { + // Checks for available update and returns an instance + var notifier = updateNotifier({ + pkg: pkg + }); - // Notify using the built-in convenience method - notifier.notify(); + // Notify using the built-in convenience method + notifier.notify(); + } catch (e) { + // https://issues.apache.org/jira/browse/CB-10062 + if (e && e.message && /EACCES/.test(e.message)) { + console.log('Update notifier was not able to access the config file.\n' + --- End diff -- Instead of `console.log`, why not `events.emit`?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org