Repository navigation
fix(errors): correct misspellings in user-facing error messages - #1210
adityamukesh wants to merge 3 commits into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
d4abf8f to
fee7fad
Compare
pontusringblom
left a comment
There was a problem hiding this comment.
Thank you for cleaning up these user-facing error strings - the corrections are consistent across the duplicated unmarshal errors and keep error codes and signatures unchanged. Fixing both ziped instances in the OCI error is a nice catch. Two small wording items on lines in this diff are noted below.
Please consider and reply to each comment in this review. For every suggestion, state how you've incorporated it or explain your reasoning for not doing so.
| short := []string{"Error creating discovery client"} | ||
| long := []string{err.Error()} | ||
| probable := []string{"Discovery resource is invalid or doesnt exist"} | ||
| probable := []string{"Discovery resource is invalid or does not exist"} |
There was a problem hiding this comment.
The remedy on the next line still reads Makes sure the you input valid resource for discovery, and the same wording appears in ErrNewInformer below at line 164. Since this PR is cleaning up user-facing text in these functions, please fix both remedies to Make sure you input ... as well, or explain why they are out of scope.
There was a problem hiding this comment.
Fixed both remedies. ErrDiscovery and ErrNewInformer in utils/kubernetes/error.go now read "Make sure you input a valid resource for discovery" and "Make sure you input a valid resource for the informer". I also added the missing "a" so the sentence reads naturally.
| defer func() { | ||
| if r := recover(); r != nil { | ||
| fmt.Println("paniced will converting dockercompose to go") | ||
| fmt.Println("panicked while converting dockercompose to go") |
There was a problem hiding this comment.
This message is printed to users, so spelling the product name as Docker Compose reads better than dockercompose.
| fmt.Println("panicked while converting dockercompose to go") | |
| fmt.Println("panicked while converting Docker Compose to go") |
There was a problem hiding this comment.
Applied as suggested. The kompose message now reads "panicked while converting Docker Compose to go".
|
IS IT IN THE STAGE OF GETTING MERGED ?
…On Mon, Nov 30, 2026 at 12:17 PM pontus ***@***.***> wrote:
***@***.**** commented on this pull request.
Thank you for cleaning up these user-facing error strings - the
corrections are consistent across the duplicated unmarshal errors and keep
error codes and signatures unchanged. Fixing both ziped instances in the
OCI error is a nice catch. Two small wording items on lines in this diff
are noted below.
Please consider and reply to each comment in this review. For every
suggestion, state how you've incorporated it or explain your reasoning for
not doing so.
------------------------------
In utils/kubernetes/error.go
<#1210 (comment)>:
> @@ -141,7 +141,7 @@ func ErrNewDynClient(err error) error {
func ErrNewDiscovery(err error) error {
short := []string{"Error creating discovery client"}
long := []string{err.Error()}
- probable := []string{"Discovery resource is invalid or doesnt exist"}
+ probable := []string{"Discovery resource is invalid or does not exist"}
The remedy on the next line still reads Makes sure the you input valid
resource for discovery, and the same wording appears in ErrNewInformer
below at line 164. Since this PR is cleaning up user-facing text in these
functions, please fix both remedies to Make sure you input ... as well,
or explain why they are out of scope.
------------------------------
In utils/kubernetes/kompose/convert.go
<#1210 (comment)>:
> @@ -56,7 +56,7 @@ func Convert(dockerCompose DockerComposeFile) (result string, err error) {
defer func() {
if r := recover(); r != nil {
- fmt.Println("paniced will converting dockercompose to go")
+ fmt.Println("panicked while converting dockercompose to go")
This message is printed to users, so spelling the product name as Docker
Compose reads better than dockercompose.
⬇️ Suggested change
- fmt.Println("panicked while converting dockercompose to go")
+ fmt.Println("panicked while converting Docker Compose to go")
—
Reply to this email directly, view it on GitHub
<#1210?email_source=notifications&email_token=BWZ65ANPVQNLNKFUQPBTET353UJXRA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTMMJQG44TCMJTGE32M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#pullrequestreview-6107911317>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BWZ65AL3HQL3INYPEGJLNIT53UJXRAVCNFSNUABFKJSXA33TNF2G64TZHMZDSMBUGE2TGMBTHNEXG43VMU5TMNRZGAZDAMRTHEYKC5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BWZ65AK3PRQBZT3QN7O5XXD53UJXRA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTMMJQG44TCMJTGE32M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/BWZ65APC33PBE5I5OZ6RNAL53UJXRA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTMMJQG44TCMJTGE32M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you authored the thread.Message ID:
<meshery/meshkit/pull/1210/review/6107911317 ***@***.***
com>
|
Fix spelling in MeshKit error text that Meshery shows to users: offest
-> offset, ziped -> zipped, inaccesible -> inaccessible, comapring ->
comparing, propery -> property, doesnt -> does not, invaid -> invalid,
sufficent -> sufficient, occured -> occurred, and the kompose panic
message ("paniced will converting" -> "panicked while converting").
Error codes and severities are unchanged.
Signed-off-by: adityamukesh <adityamukesh111@gmail.com>
Signed-off-by: adityamukesh <adityamukesh111@gmail.com>
…view
Review feedback: fix the ErrDiscovery and ErrNewInformer remedies
("Makes sure the you input valid resource" -> "Make sure you input a
valid resource") and spell the product name as "Docker Compose" in the
kompose panic message.
Signed-off-by: adityamukesh <adityamukesh111@gmail.com>
fee7fad to
0c9ac71
Compare
Intent
Fix misspellings in MeshKit's user-facing error messages. These strings are shown to Meshery users through MeshKit errors (short description, probable cause, remediation) and one stdout message, so the typos are visible in Meshery, mesheryctl, and the error reference.
Changes (text only): "Unmarshal syntax error at offest" -> "offset" (encoding/error.go, utils/error.go); "ziped" -> "zipped" (files/error.go); "inaccesible" -> "inaccessible" (models/meshmodel/registry/error.go); "comapring" -> "comparing" (registry/error.go); "propery" -> "property" (utils/component/error.go); "doesnt" -> "does not" (utils/error.go, utils/kubernetes/error.go); "invaid" -> "invalid", "sufficent" -> "sufficient" (utils/error.go); "Error occured" -> "Error occurred" (utils/kubernetes/error.go); "paniced will converting dockercompose to go" -> "panicked while converting dockercompose to go" (utils/kubernetes/kompose/convert.go).
Decisions: error codes, severities, and function signatures are unchanged. Misspellings in code comments and the pre-existing gofmt issue in kompose/convert.go are deliberately left out to keep this PR to user-visible text. No test asserts on these strings. Commits are signed off.
Follow-up: the first run's review step correctly fixed a second "ziped" (in the ErrNoTarInsideOCI remediation text) in its own commit, but that commit had no DCO sign-off, so the DCO check failed. The commit was amended to add the author's Signed-off-by (same author); its content is unchanged.
Second review round (pontusringblom on PR #1210): fixed the ErrDiscovery and ErrNewInformer remedies in utils/kubernetes/error.go ("Makes sure the you input valid resource ..." -> "Make sure you input a valid resource ..."), and changed the kompose panic message to "panicked while converting Docker Compose to go" as suggested. Text-only; build is clean.
What Changed
encoding,files,models/meshmodel/registry,registry,utils,utils/componentandutils/kubernetes. Corrections: "offest" → "offset", "ziped" → "zipped" (twice in theErrNoTarInsideOCItext), "inaccesible" → "inaccessible", "comapring" → "comparing", "propery" → "property", "doesnt" → "does not", "invaid" → "invalid", "sufficent" → "sufficient", and "occured" → "occurred".ErrDiscoveryandErrNewInformerremediations inutils/kubernetes/error.gofrom "Makes sure the you input valid resource …" to "Make sure you input a valid resource …".utils/kubernetes/kompose/convert.gofrom "paniced will converting dockercompose to go" to "panicked while converting Docker Compose to go".Only the message text changed. Error codes, severities and function signatures are the same as before.
Risk Assessment
✅ Low: Only the text inside user-facing error and stdout string literals changed. Error codes, severities and function signatures are the same, every misspelling the intent lists is fixed, and none of them is left in any Go or JSON file in the repo.
Testing
I built a disposable Go driver against this worktree and ran it through the real MeshKit API. It used real code paths where they exist (invalid-JSON unmarshal, a remote-file fetch from a local 404 server, a nil type cast) and the exported error constructors for the rest. All 15 checks passed: each changed message shows the corrected text, none of the listed misspellings appears in the rendered short description, cause or remedy, and the codes and severities match the base commit. The kompose stdout message is untested because that code is unreachable. It was a text-only library change, so there is nothing visual to screenshot; the evidence is a CLI transcript. The temporary driver and the disposable HOME have been removed, and the worktree is clean.
Evidence: Rendered error messages (CLI transcript)
Evidence: Driver program source
Signed commits
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
go run ./_livecheck(temporary driver in the worktree, removed afterwards; a copy is kept in the evidence directory) — calls the MeshKit packages and prints each error's code, severity, short description, cause and remedy. It checks for the corrected wording and fails if any of the listed misspellings appear.Real code paths:utils.Unmarshalwith invalid JSON,utils.ReadRemoteFileagainst a local test HTTP server that returns 404, andutils.Cast[string](nil).Exported constructors with real inputs:encoding.ErrUnmarshalSyntaxbuilt from a realjson.SyntaxError,utils.ErrReadingRemoteFile,utils.ErrRelPath,kubernetes.ErrNewDiscovery,ErrNewInformerandErrRestConfigFromKubeConfig,files.ErrNoTarInsideOCi,meshmodel/registry.ErrGetById,registry.ErrUpdateRelationshipFile,component.ErrGetSchema.git diff fec1ace..HEAD, filtered for changedCode =constants, severities andfuncsignatures: nothing matched.Readutils/kubernetes/kompose/convert.goto check whether the panic message'sfmt.Printlncan run.✅ **Document** - passed
✅ No issues found.
utils/kubernetes/kompose/convert.go:59- gofmt reports this file as unformatted: the fmt.Println line inside the deferred recover uses space indentation. The problem existed before this change, and the user's intent explicitly leaves it out of scope, so it was not fixed here. golangci-lint is not on PATH, somake checkcould not run. gofmt and go vet are clean on every other changed file.✅ **Push** - passed
✅ No issues found.
Summary by CodeRabbit