0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-15 08:21:40 -05:00

🐛 Add more generic error handing to svgparse.

This commit is contained in:
Andrey Antukh 2021-02-15 20:27:46 +01:00 committed by Andrés Moya
parent 0f35906930
commit 2e084cc2a6

View file

@ -124,7 +124,7 @@
(try
(with-open [istream (IOUtils/toInputStream data "UTF-8")]
(xml/parse istream))
(catch org.xml.sax.SAXParseException _e
(catch Exception _e
(ex/raise :type :validation
:code :invalid-svg-file))))