-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Refactor backend error strings as custom errors or pre-made diagnostics #37762
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
260f9d8
Replace `errBackendLocalRead` constant with custom error of same name
SarahFrench 4b9419f
Replace `errBackendNoExistingWorkspaces` constant with custom error o…
SarahFrench 460f41c
Replace `errBackendMigrateLocalDelete` constant with custom error of …
SarahFrench c096017
Replace `errBackendNewUnknown` constant with custom error of same name
SarahFrench efefbb1
Replace `errBackendSavedUnknown` constant with custom error of same name
SarahFrench 0ff9e1a
Replace `errBackendClearSaved` constant with custom error of same name
SarahFrench 40d1c94
Replace `errBackendInit` constant with custom error of same name
SarahFrench 91dba8d
Replace `errBackendInitCloud` constant with custom error of same name
SarahFrench 349320c
Replace `errBackendWriteSaved` constant with custom error of same name
SarahFrench 9ff0165
Move `migrateOrReconfigDiag` next to custom errors
SarahFrench e469981
Replace `errBackendInit` custom error with `func errBackendInitDiag` …
SarahFrench fefdcee
Replace `errBackendInitCloud` custom error with `func errBackendInitC…
SarahFrench 97319b5
Replace `errBackendWriteSaved` custom error with `func errBackendWrit…
SarahFrench 795aea3
Add new usage of errBackendWriteSavedDiag; this is another place wher…
SarahFrench f4992ca
Add godoc comments
SarahFrench ee55409
Ensure errors aren't repeated in terminal output, and ensure warnings…
SarahFrench File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Highlighting this - this is a place where I have actually changed something about the output from Terraform. This error wasn't 'wrapped' in the same way that other errors (from WriteState or PersistState) were handled elsewhere in the code.