From 69600b0b7c1cb19d52f2a660a3d87dd14b5428a2 Mon Sep 17 00:00:00 2001 From: Olivier Sallou Date: Thu, 12 Sep 2019 09:46:11 +0200 Subject: [PATCH] Fix typos in Unprocessable Entity error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🎉🎉🎉 Big thanks to Olivier Sallou (@osallou) for this contribution! --- app/models/ticket/article.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ticket/article.rb b/app/models/ticket/article.rb index bbd5e39d7..f12cc0a1b 100644 --- a/app/models/ticket/article.rb +++ b/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]