give the url of the existing image in the error

master
Aevann 2023-03-06 18:37:43 +02:00
parent d814fbbff6
commit 5d9f9ef414
1 changed files with 1 additions and 1 deletions

View File

@ -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