Fix #62: crash prevented the error message from showing when migrating from V1 to V2

pull/66/head
Romain 7 years ago
parent 1df4ee48f3
commit 6fde22e9d1

@ -27,8 +27,9 @@ exports.build = function (opts) {
function updateDatabase (callback) {
database.update(opts.input, databaseFile, (err, dbFiles) => {
if (err) return callback(err)
fileCollection = dbFiles.map(f => new File(f, opts))
callback(err)
callback()
})
},

Loading…
Cancel
Save