Skip to content

Commit

Permalink
Merge branch 'joao/esrp-errors'
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Sep 20, 2021
2 parents 83b0f43 + d390635 commit 9fb5da7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build/azure-pipelines/common/sign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 9fb5da7

Please sign in to comment.