Skip to content

Commit

Permalink
fix: serialize plugin and value in error messages
Browse files Browse the repository at this point in the history
Convert plugin and value to JSON strings in error messages for consistency.
  • Loading branch information
gentlementlegen committed Oct 12, 2024
1 parent 6d443e7 commit 7841107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/github/handlers/push-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function checkPluginConfigurations(context: GitHubContext<"push">, config:
errors.push({
path: `plugins/${i}/uses/${j}`,
message: `Failed to fetch the manifest configuration.`,
value: plugin,
value: JSON.stringify(plugin),
type: 0,
schema: configSchema,
});
Expand All @@ -109,7 +109,7 @@ async function checkPluginConfigurations(context: GitHubContext<"push">, config:
errors.push({
path,
message: error.error,
value,
value: JSON.stringify(value),
type: 0,
schema: configSchema,
});
Expand Down

0 comments on commit 7841107

Please sign in to comment.