MCPcopy
hub / github.com/github/docs / isLiquidError

Function isLiquidError

lib/render-with-fallback.js:5–6  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

3
4const LIQUID_ERROR_NAMES = new Set(['RenderError', 'ParseError', 'TokenizationError'])
5const isLiquidError = (error) =>
6 error instanceof Error && error.name && LIQUID_ERROR_NAMES.has(error.name)
7
8// Returns a string by wrapping `renderContent()`. The input string to
9// `renderContent` is one that contains Liquid and Markdown. The output

Callers 2

executeWithFallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected