Skip to content

Commit

Permalink
fix: Improve error message on render
Browse files Browse the repository at this point in the history
Taskid 48497
  • Loading branch information
carla-at-wiris committed Jul 8, 2024
1 parent d8ef2d4 commit 4937e2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/viewer/src/mathml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 4937e2f

Please sign in to comment.