# HG changeset patch # User Goffi # Date 1620222224 -7200 # Node ID b028a1256a0993aadd8c70582221e350a8974220 # Parent eaf36fffcbdb414ea6cb77317e76ad5ea7f2c8c0 browser (photos/album): show directly failure's message on upload error, and remove photo diff -r eaf36fffcbdb -r b028a1256a09 libervia/pages/photos/album/_browser/__init__.py --- a/libervia/pages/photos/album/_browser/__init__.py Sat May 01 19:05:16 2021 +0200 +++ b/libervia/pages/photos/album/_browser/__init__.py Wed May 05 15:43:44 2021 +0200 @@ -45,7 +45,7 @@ def on_error(failure, file_, photo_elt): dialog.notification.show( - f"can't upload {file_.name}: failure", + f"can't upload {file_.name}: {failure}", level="error" ) @@ -70,9 +70,10 @@ def on_slot_eb(file_, failure, photo_elt): dialog.notification.show( - f"Can't get upload slot: {failure}", + f"Can't get upload slot: {failure['message']}", level="error" ) + photo_elt.remove() def upload_files(files):