From 884769f7baff8ec05a1c37de0b2f0de7b6486fd5 Mon Sep 17 00:00:00 2001 From: rly Date: Sat, 22 Jun 2024 09:26:14 -0400 Subject: [PATCH] List individual errors when multiple are detected --- src/electron/frontend/core/components/JSONSchemaForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/electron/frontend/core/components/JSONSchemaForm.js b/src/electron/frontend/core/components/JSONSchemaForm.js index 581b4f681..3e3909820 100644 --- a/src/electron/frontend/core/components/JSONSchemaForm.js +++ b/src/electron/frontend/core/components/JSONSchemaForm.js @@ -599,7 +599,7 @@ export class JSONSchemaForm extends LitElement { if (resolvedErrors.length) { const len = resolvedErrors.length; if (len === 1) this.throw(resolvedErrors[0].message); - else this.throw(`${len} JSON Schema errors detected.`); + else this.throw(`${len} errors detected: ${resolvedErrors.map((e) => e.message).join(" ")}`); } const allErrors = flaggedInputs