mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 07:46:11 +02:00
🐛 Fix unexpected exception on uploading invalid svg file.
This commit is contained in:
parent
946d40e6cd
commit
2b33300d79
2 changed files with 10 additions and 2 deletions
|
@ -421,6 +421,9 @@
|
|||
(if (ex/ex-info? error)
|
||||
(on-error* (ex-data error))
|
||||
(cond
|
||||
(= (:code error) :invalid-svg-file)
|
||||
(rx/of (dm/error (tr "errors.media-type-not-allowed")))
|
||||
|
||||
(= (:code error) :media-type-not-allowed)
|
||||
(rx/of (dm/error (tr "errors.media-type-not-allowed")))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue