Skip to content

Commit b2742b4

Browse files
authoredMar 18, 2025··
fix: Update schema error messages with more specific wording (#34885)
1 parent feb8a6d commit b2742b4

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed
 

‎lib/modules/manager/argocd/extract.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function extractPackageFile(
3838
}
3939

4040
const definitions = ApplicationDefinitionSchema.catch(
41-
withDebugMessage([], `error parsing ${packageFile}`),
41+
withDebugMessage([], `${packageFile} does not match schema`),
4242
).parse(content);
4343

4444
const deps = definitions.flatMap(processAppSpec);

‎lib/modules/manager/composer/schema.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,7 @@ export const ComposerExtract = z
244244
.pipe(Json)
245245
.pipe(Lockfile)
246246
.nullable()
247-
.catch(
248-
withDebugMessage(null, 'Composer: lockfile parsing error'),
249-
),
247+
.catch(withDebugMessage(null, 'Composer: does not match schema')),
250248
]),
251249
),
252250
}),

‎lib/modules/manager/devbox/schema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ export const DevboxSchema = Jsonc.pipe(
6060
}),
6161
)
6262
.transform(({ packages }) => packages)
63-
.catch(withDebugMessage([], 'Devbox: error parsing file'));
63+
.catch(withDebugMessage([], 'Devbox: does not match schema'));

‎lib/modules/manager/github-actions/schema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ export const WorkflowJobsSchema = Yaml.pipe(
3939
}),
4040
)
4141
.transform((v) => Object.values(v.jobs))
42-
.catch(withDebugMessage([], 'Error parsing workflow'));
42+
.catch(withDebugMessage([], 'Does not match schema'));

0 commit comments

Comments
 (0)
Please sign in to comment.