diff --git a/packages/viewer/src/mathml.ts b/packages/viewer/src/mathml.ts index 7f5344df7..6fe1dd066 100644 --- a/packages/viewer/src/mathml.ts +++ b/packages/viewer/src/mathml.ts @@ -86,8 +86,8 @@ export async function renderMathML(properties: Properties, root: HTMLElement): P const img = await setImageProperties(properties, imgSource, mml); // Replace the MathML for the generated formula image. mathElement.parentNode?.replaceChild(img, mathElement); - } catch { - console.error(`Cannot render ${mml}: invalid MathML format.`); + } catch (e) { + console.error(`Cannot render ${mml}: ${e}`); continue; } }