Browse Source

Fix typos in Unprocessable Entity error message

๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰ Big thanks to Olivier Sallou (@osallou) for this contribution!
Olivier Sallou 5 years ago
parent
commit
69600b0b7c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/ticket/article.rb

+ 1 - 1
app/models/ticket/article.rb

@@ -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]