Log windows installer creation errors

This commit is contained in:
Nathan Sobo
2016-08-09 16:12:46 -06:00
parent 1fd2c2a494
commit c0857b611e

View File

@@ -35,5 +35,8 @@ module.exports = function (packagedAppPath, codeSign) {
}
}
console.log(`Creating Windows Installer for ${packagedAppPath}`)
return electronInstaller.createWindowsInstaller(options).then(deleteCertificate, deleteCertificate)
return electronInstaller.createWindowsInstaller(options).then(deleteCertificate, function (error) {
console.log(`Windows installer creation failed:\n${error}`)
deleteCertificate()
})
}