Skip to content

Commit f5c3716

Browse files
committed
Merge branch 'release/14.5' into dev
2 parents a63f807 + e834957 commit f5c3716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/workers/attachments/finish_direct_upload_job.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def validate_attachment(attachment, whitelist)
7979
contract = create_contract attachment, whitelist
8080

8181
unless contract.valid?
82-
errors = contracterrors.full_messages.join(", ")
82+
errors = contract.errors.full_messages.join(", ")
8383
raise "Failed to validate attachment #{attachment.id}: #{errors}"
8484
end
8585
end

0 commit comments

Comments
 (0)