Skip to content

Commit 627172f

Browse files
committed
discard wrong error notification(There is no newer version.)
1 parent a39f259 commit 627172f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/main-app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ function checkUpdate () {
130130
}
131131
updater.check((err, status) => {
132132
if (err) {
133-
console.error(err)
134-
if (!versionNotified) notify('Updater error!', err.message)
133+
var isLatest = err.message === 'There is no newer version.'
134+
if (!isLatest && !versionNotified) notify('Updater error!', err.message)
135135
}
136136
if (!err) {
137137
if (status) {

0 commit comments

Comments
 (0)