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.
This commit is contained in:
Oliver Hamlet
2016-11-19 22:29:47 +00:00
parent 769f3dd313
commit 2cf52f77fe
+6
View File
@@ -55,6 +55,12 @@
return !tag.commit.sha.startsWith(currentBuild);
});
}).catch((error) => {
if (!error.message) {
console.error(error);
} else {
throw error;
}
});
};
}));