From a5d62bd44dc91e0f13d5bbeae56812118e083c8a Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 28 Jul 2017 13:25:31 +0100 Subject: [PATCH] Fix telegram error translation keys --- lib/discourse_chat/provider/telegram/telegram_provider.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/discourse_chat/provider/telegram/telegram_provider.rb b/lib/discourse_chat/provider/telegram/telegram_provider.rb index f85cbd4..2dfb4a8 100644 --- a/lib/discourse_chat/provider/telegram/telegram_provider.rb +++ b/lib/discourse_chat/provider/telegram/telegram_provider.rb @@ -92,9 +92,9 @@ module DiscourseChat if not response['ok'] == true error_key = nil if response['description'].include? 'chat not found' - error_key = 'chat_integration.provider.telegram.channel_not_found' + error_key = 'chat_integration.provider.telegram.errors.channel_not_found' elsif response['description'].include? 'Forbidden' - error_key = 'chat_integration.provider.telegram.forbidden' + error_key = 'chat_integration.provider.telegram.errors.forbidden' end raise ::DiscourseChat::ProviderError.new info: {error_key: error_key, message: message, response_body:response} end