diff --git a/includes/helpers.js b/includes/helpers.js index 14c1a28..e2e28c7 100644 --- a/includes/helpers.js +++ b/includes/helpers.js @@ -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 = { }), -} \ No newline at end of file +}