Skip to content

[MeshSync] Fix misspellings in config and informer error messages - #640

Merged
hortison merged 1 commit into
meshery:masterfrom
adityamukesh:fix/error-message-typos
Nov 30, 2026
Merged

hortison merged 1 commit into
meshery:masterfrom
adityamukesh:fix/error-message-typos

Conversation

@adityamukesh

@adityamukesh adityamukesh commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Two MeshKit errors in meshsync/error.go have misspelled text that users see, and that is also published in the error code reference:

Error Field Before After
ErrGetObject (meshsync-1004) probable cause Config doesnt exist Config does not exist
ErrGetObject (meshsync-1004) remediation Check application config is configured correct or restart the server Check that the application config is configured correctly, or restart the server
ErrNewInformer (meshsync-1006) probable cause Resource is invalid or doesnt exist Resource is invalid or does not exist

The same strings are also updated in helpers/errorutil_errors_index.json and in the example in docs/agent-instructions/errors.md, which quotes the first one. Error codes, severities, and behavior are unchanged.

Notes for Reviewers

  • go build ./..., go vet ./meshsync/, and go test ./meshsync/ pass locally.
  • No other code matches on these strings (checked with grep -rn doesnt).

Signed commits

  • Yes, I signed my commits.

Summary by CodeRabbit

  • Documentation
    • Clarified the example guidance for a missing configuration, including steps to check the application configuration or restart the server.
    • Updated descriptions of selected errors in the error catalog and application messaging to make their causes and recommended actions clearer.
    • Error codes, alert levels, and application behavior remain unchanged.

ErrGetObject and ErrNewInformer showed "doesnt exist" as their
probable cause, and ErrGetObject's remediation said "configured
correct". These texts are shown to users and published in the error
reference. Fix them in error.go, the errorutil index, and the errors
guide that quotes them. Codes are unchanged.

Signed-off-by: adityamukesh <adityamukesh111@gmail.com>
@github-actions github-actions Bot added the language/go Golang related label Nov 30, 2026
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request revises error descriptions and remediation wording in Go error definitions, the error catalog, and the documentation example. It does not change error codes or behavior.

Changes: Error wording

Layer / File(s) Summary
Update error descriptions and remediation text
meshsync/error.go, helpers/errorutil_errors_index.json, docs/agent-instructions/errors.md
ErrGetObject and ErrNewInformer use revised cause wording. The catalog updates entries meshsync-1004 and meshsync-1006. The documentation example updates its description and remediation text.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested labels: language/go

Suggested reviewers: kumarabd, carlosriosilva, leecalcote

Merge Risk: Minimal · up to f4ec7

This change corrects spelling and grammar in error messages and documentation. It does not change behavior, so it carries no meaningful merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: fixing misspellings in user-facing config and informer error messages. The raw summary shows the edits touch ErrGetObject (meshsync-1004), ErrNewInformer (meshsync-100…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: fixing misspellings in user-facing config and informer error messages. The raw summary shows the edits touch ErrGetObject (meshsync-1004), ErrNewInformer (meshsync-1006), their catalog entries, and the docs example. The title says 'config' error messages, but the summary describes the 'Config does not exist' docs example and the ErrGetObject/ErrNewInformer wording changes. The objectives describe spelling and grammar corrections, which matches the title. The title is specific and reflects the primary change.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 065e730a-f12b-468c-9dfb-4525bb62c95b
Commits

Reviewing files that changed from the base of the PR and between 75c30e0 and f4ec758.

Files selected for processing: 3

  • docs/agent-instructions/errors.md
  • helpers/errorutil_errors_index.json
  • meshsync/error.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@pontusringblom pontusringblom left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the user-facing error text at the source and updating the error index and the docs example in the same change - I checked that these were the only copies of the old strings in the repo, and the error codes and severities are untouched. No changes requested from me.

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.

@leecalcote
leecalcote removed the request for review from hortison November 30, 2026 05:48
@adityamukesh

Copy link
Copy Markdown
Contributor Author

Thanks for checking, @pontusringblom. There are no suggestions to act on, so no further changes from me. The codes, severities, and behavior stay as they were; only the text changed.

@hortison hortison left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at head f4ec758.

Checked:

  • Full diff (3 files): spelling and grammar fixes only, in ErrGetObject (meshsync-1004) and ErrNewInformer (meshsync-1006). Error codes, severities, and behavior unchanged. The same corrected strings are applied consistently in meshsync/error.go, helpers/errorutil_errors_index.json, and the docs/agent-instructions/errors.md example.
  • Verified locally at this head with Go 1.26.4: grep -rn 'doesnt' across .go/.md/*.json finds no remaining matches; errorutil_errors_index.json parses; gofmt clean; go vet ./meshsync/ clean; go test ./meshsync/ passes.
  • GitHub checks: triage, CodeRabbit, DCO all pass. CodeRabbit reports no actionable comments. 0 review threads.

Merging now.

@hortison
hortison merged commit 69cc3c6 into meshery:master Nov 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

language/go Golang related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants