Skip to content

Improve error message for invalid remotes#2465

Merged
bufdev merged 2 commits intomainfrom
ed/remoteErr
Oct 4, 2023
Merged

Improve error message for invalid remotes#2465
bufdev merged 2 commits intomainfrom
ed/remoteErr

Conversation

@emcfarlane
Copy link
Contributor

@emcfarlane emcfarlane commented Sep 28, 2023

Extends error handling for invalid remotes to include permission_denied (is it safe to drop the code check?). Connect errors were being unwrapped back to simple form removing the message, so avoid unwrapping if not handled in the connect check.

Before:

-Failure: 403 Forbidden
+Failure: 403 Forbidden. Are you sure "github.com" (derived from module name "github.com/tmc/buf-fhir-example") is a Buf Schema Registry?

Issue: https://bufbuild.slack.com/archives/CRZ680FUH/p1695882656754589

@emcfarlane emcfarlane self-assigned this Sep 28, 2023
@bufdev bufdev merged commit ecf3366 into main Oct 4, 2023
@bufdev bufdev deleted the ed/remoteErr branch October 4, 2023 21:20
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.

3 participants