mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 10:51:38 +02:00
🐛 Fix unexpected exception on upload invalid image.
This commit is contained in:
parent
76e43f339a
commit
9b875aba21
2 changed files with 11 additions and 3 deletions
|
@ -175,7 +175,12 @@
|
|||
(ex/raise :type :internal
|
||||
:code :rlimit-not-configured
|
||||
:hint ":image rlimit not configured"))
|
||||
(rlm/execute rlimit (process params))))
|
||||
(try
|
||||
(rlm/execute rlimit (process params))
|
||||
(catch org.im4java.core.InfoException e
|
||||
(ex/raise :type :validation
|
||||
:code :invalid-image
|
||||
:cause e)))))
|
||||
|
||||
;; --- Utility functions
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue