diff --git a/src/xslt.js b/src/xslt.js index 64724cc..0004fe4 100644 --- a/src/xslt.js +++ b/src/xslt.js @@ -49,7 +49,7 @@ async function convert(options, xsltFile){ xml = await xslt.xsltProcess(xmlParser.xmlParse(xmlString), xmlParser.xmlParse(xsltString)); } catch (e) { - throw `\nCould not process XML file ${options.testFile} using XSLT ${xsltFile} \n${e}`; + throw `\nCould not process XML file ${options.testFile} using XSLT ${xsltFile} \n${e.message}`; } await processXml(options, xml);