Fix typos in Unprocessable Entity error message

🎉🎉🎉 Big thanks to Olivier Sallou (@osallou) for this contribution!
This commit is contained in:
Olivier Sallou 2019-09-12 09:46:11 +02:00 committed by Ryan Lue
parent 886c718e12
commit 69600b0b7c

View file

@ -379,7 +379,7 @@ returns
current_length = body.length
return true if body.length <= limit
raise Exceptions::UnprocessableEntity, "body if article is to large, #{current_length} chars - only #{limit} allowed" if !ApplicationHandleInfo.postmaster?
raise Exceptions::UnprocessableEntity, "body of article is too large, #{current_length} chars - only #{limit} allowed" if !ApplicationHandleInfo.postmaster?
logger.warn "WARNING: cut string because of database length #{self.class}.body(#{limit} but is #{current_length})"
self.body = body[0, limit]