From b1c268f3557c5877c449a07b67db7926ef9d011c Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 30 Aug 2024 07:01:39 -0700 Subject: [PATCH] refactor: Improve error handling for repository file counting failure --- aider/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/main.py b/aider/main.py index bd33d5916..e0946052b 100644 --- a/aider/main.py +++ b/aider/main.py @@ -558,7 +558,8 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F coder.show_announcements() except UnableToCountRepoFiles as e: io.tool_error(f"Unable to count repository files: {str(e)}") - io.tool_error("Some repository information may be incomplete.") + io.tool_error("Git repository may be corrupt?") + return 1 if args.show_prompts: coder.cur_messages += [