From 363803fc458c049cc3488e2b4a40cc67583b7eb2 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sun, 20 Feb 2022 00:51:11 +0100 Subject: [PATCH] Improvement in logging --- Models/ThemeConfig/Conversion/Validation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/ThemeConfig/Conversion/Validation.ts b/Models/ThemeConfig/Conversion/Validation.ts index e7624b0dc..dc17d0d50 100644 --- a/Models/ThemeConfig/Conversion/Validation.ts +++ b/Models/ThemeConfig/Conversion/Validation.ts @@ -305,9 +305,9 @@ export class DetectMappingsWithImages extends DesugaringStep 0) { if(!ignore){ - errors.push(`${ctx}: A mapping has an image in the 'then'-clause. Remove the image there and use \`"icon": \` instead. The images found are ${images.join(", ")}. (Ignore this warning by adding "#": "${ignoreToken}" to the mapping`) + errors.push(`${ctx}: A mapping has an image in the 'then'-clause. Remove the image there and use \`"icon": \` instead. The images found are ${images.join(", ")}. (This check can be turned of by adding "#": "${ignoreToken}" in the mapping, but this is discouraged`) }else{ - information.push(`${ctx}: Ignored images in then`) + information.push(`${ctx}: Ignored image ${images.join(", ")} in 'then'-clause of a mapping as this check has been disabled`) } }else if (ignore){ warnings.push(`${ctx}: unused '${ignoreToken}' - please remove this`)