Update db.js

Updated failure string
This commit is contained in:
Noah Zalev 2021-04-10 20:41:50 -04:00 committed by GitHub
parent 72afaaa908
commit e79b2b8070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
db.js
View File

@ -1841,7 +1841,7 @@ module.exports.CreateDB = function (parent, func) {
}
output.on('close', function () {
obj.performingBackup = false;
if (func) { if (sqlDumpSuccess) { func('Auto-backup completed.'); } else { func('Auto-backup completed without mongodb database: ' + error); } }
if (func) { if (sqlDumpSuccess) { func('Auto-backup completed.'); } else { func('Auto-backup completed without MySQL/MariaDB database: ' + error); } }
obj.performCloudBackup(newAutoBackupPath + '.zip', func);
setTimeout(function () { try { parent.fs.unlink(newBackupPath + '.sql', function () { }); } catch (ex) { console.log(ex); } }, 5000);
});