mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 14:36:25 +00:00
fix: Return non-zero exit code in any fatal error (#3621)
This commit is contained in:
parent
3faa3ece0f
commit
315f036e38
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,8 @@ function initLogger() {
|
|||
];
|
||||
logFunctions.forEach(x => {
|
||||
global.logger[x] = (p1, p2) => {
|
||||
global.renovateError = global.renovateError || x === 'error';
|
||||
global.renovateError =
|
||||
global.renovateError || x === 'error' || x === 'fatal';
|
||||
if (p2) {
|
||||
// meta and msg provided
|
||||
return bunyanLogger[x]({ ...meta, ...p1 }, p2);
|
||||
|
|
Loading…
Reference in a new issue