mirror of
https://github.com/penpot/penpot.git
synced 2026-04-29 05:08:08 +00:00
fix(backend): raise proper exception on input is binary data on svgparse
This commit is contained in:
parent
48d5188aaa
commit
076c29e004
@ -67,8 +67,13 @@
|
||||
(ex/raise :type :validation
|
||||
:code ::invalid-input
|
||||
:message "Input does not seems to be a valid svg."))
|
||||
|
||||
(catch org.jsoup.UncheckedIOException e
|
||||
(ex/raise :type :validation
|
||||
:code ::invalid-input
|
||||
:message "Input does not seems to be a valid svg."))
|
||||
|
||||
(catch Exception e
|
||||
(.printStackTrace e)
|
||||
(ex/raise :code ::unexpected))))
|
||||
|
||||
;; --- Public Api
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user