mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
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:
@@ -55,6 +55,12 @@
|
||||
|
||||
return !tag.commit.sha.startsWith(currentBuild);
|
||||
});
|
||||
}).catch((error) => {
|
||||
if (!error.message) {
|
||||
console.error(error);
|
||||
} else {
|
||||
throw error;
|
||||
}
|
||||
});
|
||||
};
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user