Skip to content

WIP: token error handling (pending)#283

Draft
Sundraiz-Shah wants to merge 2 commits into
masterfrom
Token-Error-handling
Draft

WIP: token error handling (pending)#283
Sundraiz-Shah wants to merge 2 commits into
masterfrom
Token-Error-handling

Conversation

@Sundraiz-Shah
Copy link
Copy Markdown
Collaborator

What changed

Before this fix, when something went wrong (wrong token, expired token, wrong URL), the tool would silently fail with a generic or confusing message. Now it tells you exactly what the problem is.

Situation Before After
Wrong GitHub token "nothing harvested" (no reason given) "The provided GitHub token is invalid"
Expired GitHub token "nothing harvested" (no reason given) "The GitHub token has expired"
Wrong GitHub URL "nothing harvested" (no reason given) "GitHub repository not found"
Wrong GitLab token "GitLab requires a valid personal access token" "The provided GitLab token is invalid"
Expired GitLab token "GitLab requires a valid personal access token" "The GitLab token has expired"
Wrong GitLab URL "GitLab requires a valid personal access token" "GitLab repository not found"

In short: instead of a confusing dead end, you now get a clear message telling you what went wrong and where.

@Sundraiz-Shah Sundraiz-Shah marked this pull request as draft May 21, 2026 11:23
@Sundraiz-Shah Sundraiz-Shah changed the title Token error handling WIP: token error handling (pending) May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants