diff --git a/backend/src/uxbox/services/svgparse.clj b/backend/src/uxbox/services/svgparse.clj index 433f58c32..bf7487f74 100644 --- a/backend/src/uxbox/services/svgparse.clj +++ b/backend/src/uxbox/services/svgparse.clj @@ -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