Another batch of important updates and fixes
This commit is contained in:
@@ -196,7 +196,12 @@ function updateDictionaries(done) {
|
||||
)
|
||||
},
|
||||
function (cbwd) {
|
||||
fetchUpdates(ldict, errd => {
|
||||
fetchUpdates(ldict, (errd, body) => {
|
||||
if (body && body.error)
|
||||
console.error(
|
||||
'skipping dictionary update due to ',
|
||||
body.error
|
||||
)
|
||||
cbwd(errd)
|
||||
})
|
||||
},
|
||||
@@ -304,7 +309,7 @@ function fetchUpdates(ldict, done) {
|
||||
if (error) return done(error)
|
||||
if (body.error) {
|
||||
// server side error message
|
||||
return done(body)
|
||||
return done(null, body)
|
||||
}
|
||||
// the body will contain decoded JSON array of dictionary items to update
|
||||
if (Array.isArray(body)) {
|
||||
|
||||
Reference in New Issue
Block a user