1
0
mirror of synced 2026-01-23 12:02:29 -05:00

Upgradeliquidjs 10.13 (#50845)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Grace Park <gracepark@github.com>
This commit is contained in:
Peter Bengtsson
2024-06-12 15:00:10 -04:00
committed by GitHub
parent b58e73c51c
commit c251f6d64e
5 changed files with 18 additions and 7 deletions

View File

@@ -77,7 +77,8 @@ function run(languageCode: string, site: Site, englishReusables: Reusables) {
const illegalTags = new Map<string, number>()
function countError(error: TokenizationError, where: string) {
const errorString = (error as any).originalError.message as string
const originalError = (error as any).originalError
const errorString = originalError ? originalError.message : error.message
if (errorString.includes('illegal tag syntax')) {
const illegalTag = (error as any).token.content
illegalTags.set(illegalTag, (illegalTags.get(illegalTag) || 0) + 1)