mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
🐛 Add more generic error handing to svgparse.
This commit is contained in:
parent
0f35906930
commit
2e084cc2a6
@ -124,7 +124,7 @@
|
|||||||
(try
|
(try
|
||||||
(with-open [istream (IOUtils/toInputStream data "UTF-8")]
|
(with-open [istream (IOUtils/toInputStream data "UTF-8")]
|
||||||
(xml/parse istream))
|
(xml/parse istream))
|
||||||
(catch org.xml.sax.SAXParseException _e
|
(catch Exception _e
|
||||||
(ex/raise :type :validation
|
(ex/raise :type :validation
|
||||||
:code :invalid-svg-file))))
|
:code :invalid-svg-file))))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user