Skip to content

Commit

Permalink
Improvement in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pietervdvn committed Feb 19, 2022
1 parent 89c5cd3 commit 363803f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Models/ThemeConfig/Conversion/Validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ export class DetectMappingsWithImages extends DesugaringStep<TagRenderingConfigJ
const ctx = `${context}.mappings[${i}]`
if (images.length > 0) {
if(!ignore){
errors.push(`${ctx}: A mapping has an image in the 'then'-clause. Remove the image there and use \`"icon": <your-image>\` 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": <your-image>\` 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`)
Expand Down

0 comments on commit 363803f

Please sign in to comment.