Fixed error logging

master
Keith Irwin 2021-11-14 02:32:12 +00:00
parent a0e5f38f0f
commit 576519749f
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ module.exports = {
})
nsupdate.on('exit', (status) => {
console.log(`nsupdate exited with status: ${status}`)
if (status===0) reject(errors)
if (status!==0) reject(errors)
else resolve()
})
@ -123,4 +123,4 @@ module.exports = {
}),
}
}