Skip to content

Commit f785fd2

Browse files
authored
chore(workers/repository): add more information to lookup error warnings (renovatebot#42120)
When a `lookupError` occurs, it's currently unclear as to why the lookup error occurred. It seems to be more common in the Go ecosystem where a lookup error occurs, and Renovate autocloses PRs, only to recreate them in a future run. To provide more useful debugging information to users, we can add the actual `lookupError` string itself.
1 parent a5c62c1 commit f785fd2

File tree

1 file changed

+1
-1
lines changed
  • lib/workers/repository/process/lookup

1 file changed

+1
-1
lines changed

lib/workers/repository/process/lookup/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export async function lookupUpdates(
171171
// If dependency lookup fails then warn and return
172172
const warning: ValidationMessage = {
173173
topic: config.packageName,
174-
message: `Failed to look up ${config.datasource} package ${config.packageName}`,
174+
message: `Failed to look up ${config.datasource} package ${config.packageName}: ${lookupError}`,
175175
};
176176
logger.debug(
177177
{

0 commit comments

Comments
 (0)