From 5d9f9ef414fb7e46717bdffd46828ffe490f861e Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 6 Mar 2023 18:37:43 +0200 Subject: [PATCH] give the url of the existing image in the error --- files/helpers/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index a9b829bde..0abf00448 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -217,7 +217,7 @@ def process_image(filename:str, v, resize=0, trim=False, uploader_id:Optional[in if i_hash in hashes.keys(): os.remove(filename) if has_request: - abort(409, "Image already exists!") + abort(409, "Image already exists! " + hashes[i_hash].replace('files', SITE_FULL)) return None db = db or g.db