More gracefully handle code signing failure

This commit is contained in:
Sindre Sorhus 2017-03-29 13:45:45 +07:00
parent 9bf900661b
commit 47b3713974
1 changed files with 4 additions and 1 deletions

5
cli.js
View File

@ -90,7 +90,10 @@ ee.on('finish', () => {
ora.info(`Code signing identity: ${match[1]}`).start();
ora.succeed('DMG created');
}).catch(ora.fail.bind(ora));
}).catch(err => {
ora.fail(`Code signing failed. The DMG is fine, just not code signed.\n${err.stderr.trim()}`);
process.exit(1);
});
});
ee.on('error', err => {