Skip to content

Commit 2516879

Browse files
committed
fix weird behavior after rebase attempt
1 parent f244494 commit 2516879

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/server/query_processor.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ async def process_query(
6767
msg = f"Invalid pattern type: {pattern_type}"
6868
raise ValueError(msg)
6969

70+
if token:
71+
validate_github_token(token)
72+
7073
max_file_size = log_slider_to_size(slider_position)
7174

7275
context = {
@@ -113,9 +116,7 @@ async def process_query(
113116

114117
context["error"] = f"Error: {exc}"
115118
if "405" in str(exc):
116-
context["error"] = (
117-
"Repository not found. Please make sure it is public (private repositories will be supported soon)"
118-
)
119+
context["error_message"] = "Repository not found. Please make sure it is public."
119120
return context
120121

121122
if len(content) > MAX_DISPLAY_SIZE:

0 commit comments

Comments
 (0)