Skip to content

fix: report an unreadable config file in check and dictionaries - #9766

Open
nihar777 wants to merge 1 commit into
streetsidesoftware:mainfrom
nihar777:fix/check-dictionaries-unreadable-config
Open

nihar777 wants to merge 1 commit into
streetsidesoftware:mainfrom
nihar777:fix/check-dictionaries-unreadable-config

Conversation

@nihar777

@nihar777 nihar777 commented Dec 1, 2026

Copy link
Copy Markdown

Summary

cspell check and cspell dictionaries now report a configuration file that can't be read and exit with 1. Before, --config missing.json was silently ignored and the command exited with 0.

  • The message matches cspell lint: Configuration Error: Failed to read config file: "…".
  • cspell check --json includes the error in its JSON output.
  • A missing file to check still reports File not found.

Fixes #9763

cspell check and cspell dictionaries carried on and exited 0 when --config named a file that could not be read. They now print the configuration error and exit with 1, as lint does.
@github-actions github-actions Bot added the fix label Dec 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cspell check and cspell dictionaries ignore a config file that can't be read

1 participant