Skip to content
Permalink
Browse files

Fix typos in Unprocessable Entity error message

πŸŽ‰πŸŽ‰πŸŽ‰ Big thanks to Olivier Sallou (@osallou) for this contribution!
  • Loading branch information...
osallou authored and Ryan Lue committed Sep 12, 2019
1 parent 886c718 commit 69600b0b7c1cb19d52f2a660a3d87dd14b5428a2
Showing with 1 addition and 1 deletion.
  1. +1 βˆ’1 app/models/ticket/article.rb
@@ -379,7 +379,7 @@ def check_body
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]

0 comments on commit 69600b0

Please sign in to comment.
You can’t perform that action at this time.