Skip to content

config: clarify the 'no matching creation rules found' error - #2330

Open
NUAAwqy wants to merge 1 commit into
getsops:mainfrom
NUAAwqy:fix/issue-1061-clearer-no-rule-error
Open

NUAAwqy wants to merge 1 commit into
getsops:mainfrom
NUAAwqy:fix/issue-1061-clearer-no-rule-error

Conversation

@NUAAwqy

@NUAAwqy NUAAwqy commented Oct 24, 2026

Copy link
Copy Markdown

Fixes #1061

When a subcommand is mistyped (e.g. sops updateKeys some-file.yaml instead of updatekeys), the argument is treated as a file path and the user only sees error loading config: no matching creation rules found — which suggests a config problem even though the config was parsed successfully.

The error now states that the config file was parsed successfully, includes the file path, and hints that a mistyped subcommand is treated as a file path (using the exact example from the issue).

Fixes getsops#1061

When a subcommand is mistyped (e.g. 'sops updateKeys' instead of
'updatekeys'), the argument is treated as a file path and the user only
sees 'error loading config: no matching creation rules found', which
suggests a config problem even though the config was parsed successfully.

State that the config was parsed fine, include the file path, and hint
that a mistyped subcommand is treated as a file path.

Signed-off-by: NUAAwqy <146524024+NUAAwqy@users.noreply.github.com>
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.

Error message on command typo is extremely counter-intuitive

1 participant