minor improvement

This commit is contained in:
Christoph Haas 2021-02-21 16:43:02 +01:00
parent c234ffec4f
commit 896cd533b4

View file

@ -75,7 +75,7 @@ class PackagesController < ApplicationController
# Check that this screenshot is not a duplicate for this package
if @package.screenshots.where(image_fingerprint: new_screenshot.image_fingerprint).any?
Log.log "Duplicate image with fingerprint #{new_screenshot.image_fingerprint} found. Rejecting."
all_errors << "Your file #{img.original_filename} is a duplicate."
all_errors << "Your file #{img.original_filename} is a duplicate. Sorry."
else
# Can the upload get approved automatically?
if user_signed_in?