From 78411073714163f0fddde09b3b3a16705705f955 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Sat, 12 Oct 2024 15:30:55 +0900 Subject: [PATCH] fix: serialize plugin and value in error messages Convert plugin and value to JSON strings in error messages for consistency. --- src/github/handlers/push-event.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github/handlers/push-event.ts b/src/github/handlers/push-event.ts index 7ccf830..58d6b38 100644 --- a/src/github/handlers/push-event.ts +++ b/src/github/handlers/push-event.ts @@ -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, }); @@ -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, });