fix: Log error messages on reject

This commit is contained in:
Jacob Wejendorp 2017-10-19 21:52:08 +02:00 committed by Pierre Vanduynslager
parent b0bc49063b
commit f6aacd2fe0

View File

@ -23,6 +23,8 @@ npx is bundled with npm >= 5.4, or available via npm. More info: npm.im/npx`
}
// node 8+ from this point on
require('../src')().catch(() => {
require('../src')().catch(err => {
console.error('An error occurred while running semantic-release');
console.error(err);
process.exit(1);
});