From 2cf52f77fe925d9d959f205ceccce7e49df31425 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 19 Nov 2016 15:54:15 +0000 Subject: [PATCH] Supress error dialog if update checker fails with no message If there's no internet connection, for example, the dialog would be displayed with an empty error message, which isn't helpful. --- src/gui/html/js/updateExists.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/html/js/updateExists.js b/src/gui/html/js/updateExists.js index 0ac41eab..5d9923e7 100644 --- a/src/gui/html/js/updateExists.js +++ b/src/gui/html/js/updateExists.js @@ -55,6 +55,12 @@ return !tag.commit.sha.startsWith(currentBuild); }); + }).catch((error) => { + if (!error.message) { + console.error(error); + } else { + throw error; + } }); }; }));