Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
2f87b53c
Unverified
Commit
2f87b53c
authored
4 years ago
by
Michael Kriese
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(worker): early exit if config can't parsed (#7884)
parent
95577ac0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/workers/global/index.ts
+6
-1
6 additions, 1 deletion
lib/workers/global/index.ts
with
6 additions
and
1 deletion
lib/workers/global/index.ts
+
6
−
1
View file @
2f87b53c
...
@@ -43,7 +43,7 @@ function haveReachedLimits(): boolean {
...
@@ -43,7 +43,7 @@ function haveReachedLimits(): boolean {
return
false
;
return
false
;
}
}
export
async
function
start
():
Promise
<
0
|
1
>
{
export
async
function
start
():
Promise
<
number
>
{
let
config
:
RenovateConfig
;
let
config
:
RenovateConfig
;
try
{
try
{
// read global config from file, env and cli args
// read global config from file, env and cli args
...
@@ -73,6 +73,11 @@ export async function start(): Promise<0 | 1> {
...
@@ -73,6 +73,11 @@ export async function start(): Promise<0 | 1> {
}
else
{
}
else
{
logger
.
fatal
({
err
},
`Fatal error:
${
String
(
err
.
message
)}
`
);
logger
.
fatal
({
err
},
`Fatal error:
${
String
(
err
.
message
)}
`
);
}
}
if
(
!
config
)
{
// return early if we can't parse config options
logger
.
debug
(
`Missing config`
);
return
2
;
}
}
finally
{
}
finally
{
globalFinalize
(
config
);
globalFinalize
(
config
);
logger
.
debug
(
`Renovate exiting`
);
logger
.
debug
(
`Renovate exiting`
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment