Skip to content

Commit 47c143f

Browse files
committed
Improved error message for private repositories
1 parent 2ff6076 commit 47c143f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/server/query_processor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ async def process_query(
103103
print(f"{Colors.RED}{e}{Colors.END}")
104104

105105
context["error_message"] = f"Error: {e}"
106+
if "405" in str(e):
107+
context["error_message"] = (
108+
"Repository not found. Please make sure it is public (private repositories will be supported soon)"
109+
)
106110
return template_response(context=context)
107111

108112
if len(content) > MAX_DISPLAY_SIZE:

0 commit comments

Comments
 (0)