Update metrics.mjs

This commit is contained in:
lowlighter
2020-10-13 19:12:14 +02:00
parent f4b6e39030
commit e9e23d6028

View File

@@ -23,4 +23,6 @@
//Ensure it's a well-formed SVG image //Ensure it's a well-formed SVG image
const parsed = libxmljs.parseXml(rendered) const parsed = libxmljs.parseXml(rendered)
if (parsed.errors.length) if (parsed.errors.length)
throw new Error(`Malformed SVG : \n${parsed.errors.join("\n")}`) throw new Error(`Malformed SVG : \n${parsed.errors.join("\n")}`)
console.log("Test success !")