Fix typos in Unprocessable Entity error message
🎉🎉🎉 Big thanks to Olivier Sallou (@osallou) for this contribution!
This commit is contained in:
parent
886c718e12
commit
69600b0b7c
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue