forked from MarseyWorld/MarseyWorld
give the url of the existing image in the error
parent
d814fbbff6
commit
5d9f9ef414
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue