fix: Log error messages on reject

This commit is contained in:
Jacob Wejendorp
2017-10-23 10:43:56 -04:00
committed by Pierre Vanduynslager
parent b0bc49063b
commit f6aacd2fe0
+3 -1
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 // 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); process.exit(1);
}); });