diff --git a/zulip_botserver/zulip_botserver/server.py b/zulip_botserver/zulip_botserver/server.py index 17d051180..7a2e3151f 100644 --- a/zulip_botserver/zulip_botserver/server.py +++ b/zulip_botserver/zulip_botserver/server.py @@ -125,8 +125,8 @@ def load_lib_modules(available_bots: List[str]) -> Dict[str, ModuleType]: _, bots_lib_module[bot] = import_module_from_zulip_bot_registry(bot) if bots_lib_module[bot] is None: error_message = ( - f'Error: Bot "{bot}" doesn\'t exist. Please make sure ' - "you have set up the botserverrc file correctly.\n" + f'Error: Bot "{bot}" doesn\'t exist or the file cannot be imported. Please make sure ' + "you have set up the botserverrc file correctly and that the file runs without errors.\n" ) if bot == "api": error_message += (