fix: Log error messages on reject
This commit is contained in:
parent
b0bc49063b
commit
f6aacd2fe0
@ -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);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user