Skip to content

Commit 4937e2f

Browse files
fix: Improve error message on render
Taskid 48497
1 parent d8ef2d4 commit 4937e2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/viewer/src/mathml.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ export async function renderMathML(properties: Properties, root: HTMLElement): P
8686
const img = await setImageProperties(properties, imgSource, mml);
8787
// Replace the MathML for the generated formula image.
8888
mathElement.parentNode?.replaceChild(img, mathElement);
89-
} catch {
90-
console.error(`Cannot render ${mml}: invalid MathML format.`);
89+
} catch (e) {
90+
console.error(`Cannot render ${mml}: ${e}`);
9191
continue;
9292
}
9393
}

0 commit comments

Comments
 (0)