Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message for unsupported protocol scheme with URL context #1051

Merged
merged 112 commits into from
Dec 1, 2024

Conversation

sverdlov93
Copy link
Contributor

@sverdlov93 sverdlov93 commented Nov 28, 2024

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

Description:

Before:
The error message for unsupported protocol schemes was generic, without any context about the URL causing the issue and also 5 ugly and scary retries:
image

After:
The error message now includes the URL that triggered the error, providing users with more specific information to resolve the issue. If an unsupported protocol scheme is detected, the error will indicate which URL is problematic and suggest including a valid scheme like http:// or https://:
image

@sverdlov93 sverdlov93 changed the base branch from master to dev November 28, 2024 13:27
@sverdlov93 sverdlov93 added safe to test Approve running integration tests on a pull request improvement Automatically generated release notes labels Nov 28, 2024
@sverdlov93 sverdlov93 requested a review from yahavi November 28, 2024 13:28
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 28, 2024
@sverdlov93 sverdlov93 requested a review from eyalbe4 November 28, 2024 13:29
Signed-off-by: Michael Sverdlov <[email protected]>
@sverdlov93 sverdlov93 added the safe to test Approve running integration tests on a pull request label Nov 28, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Nov 28, 2024
Signed-off-by: Michael Sverdlov <[email protected]>
@sverdlov93 sverdlov93 merged commit 1ae8cc7 into jfrog:dev Dec 1, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants