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:
parent
0f35906930
commit
2e084cc2a6
1 changed files with 1 additions and 1 deletions
|
@ -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))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue