From 6c47eda92bce0efe0297990965e90e79b54a1cd0 Mon Sep 17 00:00:00 2001 From: derAnfaenger Date: Fri, 25 Aug 2017 09:55:25 +0200 Subject: [PATCH] definition bot: Clarify error message. --- zulip_bots/zulip_bots/bots/define/define.py | 2 +- zulip_bots/zulip_bots/bots/define/test_define.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zulip_bots/zulip_bots/bots/define/define.py b/zulip_bots/zulip_bots/bots/define/define.py index 3c7122e..69d9722 100644 --- a/zulip_bots/zulip_bots/bots/define/define.py +++ b/zulip_bots/zulip_bots/bots/define/define.py @@ -11,7 +11,7 @@ class DefineHandler(object): ''' DEFINITION_API_URL = 'https://owlbot.info/api/v1/dictionary/{}?format=json' - REQUEST_ERROR_MESSAGE = 'Definition not available.' + REQUEST_ERROR_MESSAGE = 'Could not load definition.' EMPTY_WORD_REQUEST_ERROR_MESSAGE = 'Please enter a word to define.' PHRASE_ERROR_MESSAGE = 'Definitions for phrases are not available.' diff --git a/zulip_bots/zulip_bots/bots/define/test_define.py b/zulip_bots/zulip_bots/bots/define/test_define.py index fd0e839..71b5f6e 100755 --- a/zulip_bots/zulip_bots/bots/define/test_define.py +++ b/zulip_bots/zulip_bots/bots/define/test_define.py @@ -42,7 +42,7 @@ class TestDefineBot(BotTestCase): ) # Incorrect word. - bot_response = "**foo**:\nDefinition not available." + bot_response = "**foo**:\nCould not load definition." with self.mock_http_conversation('test_incorrect_word'): self.assert_bot_response( message = {'content': 'foo'},