From 3166dbe4a6acafcccc9c948579e5fd2223f00286 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 21 Mar 2016 09:23:53 -0400 Subject: [PATCH] Throw error after displaying it with dialog Currently, we "swallow" errors by only showing them with the "dialog" module, causing them to not be logged to TrackJS. --- lib/src/dialog.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/dialog.js b/lib/src/dialog.js index faccfdee..ee0d81b0 100644 --- a/lib/src/dialog.js +++ b/lib/src/dialog.js @@ -81,4 +81,5 @@ exports.selectImage = function() { */ exports.showError = function(error) { electron.dialog.showErrorBox(error.message, error.stack || ''); + throw error; };