Merge branch 'joao/esrp-errors'

This commit is contained in:
João Moreno 2021-09-20 14:19:16 +02:00
commit 9fb5da7d91
No known key found for this signature in database
GPG key ID: 896B853774D1A575

View file

@ -76,9 +76,16 @@ export function main([esrpCliPath, type, cert, username, password, folderPath, p
'-e', keyFile,
];
cp.spawnSync('dotnet', args, { stdio: 'inherit' });
try {
cp.execFileSync('dotnet', args, { stdio: 'inherit' });
} catch (err) {
console.error('ESRP failed');
console.error(err);
process.exit(1);
}
}
if (require.main === module) {
main(process.argv.slice(2));
process.exit(0);
}