From 68250d80cd756f17c33b869bc2b5826af8e95732 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Tue, 15 Aug 2017 21:38:31 +0200 Subject: [PATCH] Improved error logging --- docs/tutorial/updates.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/tutorial/updates.md b/docs/tutorial/updates.md index f0108b60cc6e..5f448e329c60 100644 --- a/docs/tutorial/updates.md +++ b/docs/tutorial/updates.md @@ -77,5 +77,8 @@ Also make sure that errors are for logging them to `stderr`: ```js -autoUpdater.on('error', console.error) +autoUpdater.on('error', message => { + console.error('There was a problem updating the application') + console.error(message) +}) ```