diff --git a/CHANGES.md b/CHANGES.md index ab87123b5..379b072f2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -68,6 +68,7 @@ - Fix overlay position when it has shadow or blur [Taiga #4752](https://tree.taiga.io/project/penpot/issue/4752) - Fix overlay position when there are elements fixed when scrolling [Taiga #4383](https://tree.taiga.io/project/penpot/issue/4383) - Fix problem when sliding color picker in selected-colors [#3150](https://github.com/penpot/penpot/issues/3150) +- Fix error screen on upload image error [Taiga #5608](https://tree.taiga.io/project/penpot/issue/5608) ### :arrow_up: Deps updates diff --git a/frontend/src/app/main/data/workspace/media.cljs b/frontend/src/app/main/data/workspace/media.cljs index 424899ad8..b7226dd99 100644 --- a/frontend/src/app/main/data/workspace/media.cljs +++ b/frontend/src/app/main/data/workspace/media.cljs @@ -181,7 +181,9 @@ (on-error error) :else - (rx/throw error))))] + (do + (.error js/console "ERROR" error) + (rx/of (msg/error (tr "errors.cannot-upload")))))))] (ptk/reify ::process-media-objects ptk/WatchEvent diff --git a/frontend/translations/en.po b/frontend/translations/en.po index 7c5e2f162..13b41ee30 100644 --- a/frontend/translations/en.po +++ b/frontend/translations/en.po @@ -1017,6 +1017,9 @@ msgstr "Email or password is incorrect." msgid "errors.wrong-old-password" msgstr "Old password is incorrect" +msgid "errors.cannot-upload" +msgstr "Cannot upload the media file." + #: src/app/main/ui/settings/feedback.cljs msgid "feedback.description" msgstr "Description" diff --git a/frontend/translations/es.po b/frontend/translations/es.po index dcdd6727b..8076484d0 100644 --- a/frontend/translations/es.po +++ b/frontend/translations/es.po @@ -1057,6 +1057,9 @@ msgstr "El email o la contraseña son incorrectos." msgid "errors.wrong-old-password" msgstr "La contraseña anterior no es correcta" +msgid "errors.cannot-upload" +msgstr "No se puede subir el fichero" + #: src/app/main/ui/settings/feedback.cljs msgid "feedback.description" msgstr "Descripción"