-
Notifications
You must be signed in to change notification settings - Fork 134
*: remaining errors revamp #4050
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
Conversation
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.
Pull Request Overview
This PR refactors error messages across remaining packages to follow a consistent style guideline: removing conversational prefixes like "cannot", "can't", "couldn't", "doesn't" and rephrasing messages to be more concise and direct. The changes standardize error messages to use imperative mood without unnecessary prefixes and clarify configuration requirements.
- Simplified error message phrasing by removing conversational language
- Standardized flag-related error messages to use consistent format
- Improved clarity of verification and validation error messages
Reviewed Changes
Copilot reviewed 35 out of 36 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| testutil/obolapimock/obolapi_exit.go | Simplified JSON marshaling error message |
| testutil/genchangelog/main.go | Removed "can't" prefix from tag parsing errors |
| testutil/compose/define.go | Reworded environment variable error for clarity |
| testutil/compose/auto.go | Changed "couldn't" to "could not" in alert polling error |
| dkg/protocol.go | Standardized verification error messages |
| dkg/exchanger.go | Simplified context error message |
| dkg/dkg_internal_test.go | Standardized keymanager flag error messages in tests |
| dkg/dkg.go | Updated keymanager and test flag error messages |
| dkg/disk_internal_test.go | Changed "doesn't" to "does not" for consistency |
| dkg/disk.go | Standardized directory and verification error messages |
| dkg/bcast/impl.go | Simplified signature verification error |
| cmd/testmev_internal_test.go | Standardized beacon node endpoint error in test |
| cmd/testmev.go | Updated beacon node and load test flag error messages |
| cmd/testbeacon.go | Clarified POST request error message |
| cmd/run_internal_test.go | Simplified nickname length error in test |
| cmd/run.go | Updated nickname validation error message |
| cmd/relay/relay.go | Removed "failed to" prefix from conversion errors |
| cmd/manifest_tools.go | Simplified verification error messages |
| cmd/edit_removeoperators_internal_test.go | Updated private key load error in test |
| cmd/edit_recreateprivatekeys_internal_test.go | Simplified validator keys directory error in test |
| cmd/edit_recreateprivatekeys.go | Updated validator keys directory validation error |
| cmd/edit_addvalidators_internal_test.go | Standardized validation error messages in tests |
| cmd/edit_addvalidators.go | Updated num-validators and validator keys validation errors |
| cmd/createdkg_internal_test.go | Simplified threshold validation errors in tests |
| cmd/createdkg.go | Updated threshold validation error messages |
| cmd/createcluster_internal_test.go | Standardized flag conflict and validation errors in tests |
| cmd/createcluster.go | Updated threshold, keymanager, and validation error messages |
| cmd/combine/combine.go | Removed "cannot"/"can't" prefixes from file operation errors |
| cluster/manifest/load_test.go | Changed "don't match" to "mismatch" for consistency |
| cluster/manifest/load.go | Simplified manifest loading and hash comparison errors |
| cluster/lock.go | Clarified signature verification error message |
| cluster/helpers_internal_test.go | Updated directory validation error in test |
| cluster/helpers.go | Simplified non-empty directory error |
| cluster/definition.go | Removed "the" prefix and standardized version support errors |
| CLAUDE.md | Added knowledge base section with documentation links |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4050 +/- ##
==========================================
+ Coverage 53.81% 54.79% +0.97%
==========================================
Files 242 242
Lines 39425 31040 -8385
==========================================
- Hits 21217 17007 -4210
+ Misses 15965 11793 -4172
+ Partials 2243 2240 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
||
| if resp.StatusCode/100 != 2 { | ||
| return 0, errors.New("post failed", z.Int("status", resp.StatusCode)) | ||
| return 0, errors.New("post request failed", z.Int("status", resp.StatusCode)) |
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.
| return 0, errors.New("post request failed", z.Int("status", resp.StatusCode)) | |
| return 0, errors.New("POST request failed", z.Int("status", resp.StatusCode)) |
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.
cannot start error with capital letter, we have this rule in the pre-commit
|



remaining packages errors revamp with claude.
category: refactor
ticket: #3882