Skip to content

Conversation

@DS-Controller2
Copy link
Contributor

TLDR

Improve configuration error message to include file locations. When configuration files have
errors, users need to know where to find these files to fix them. This change enhances the
error message to include the exact paths to the user and workspace configuration files.

Fixes #2

Dive Deeper

The issue reported in #2 was that when configuration files contain syntax errors, users
couldn't easily locate and fix them because the error message didn't specify where the
configuration files are stored. This led to frustration as users had to search for the file
locations or ask for help.

This change enhances the error handling in the CLI to provide clear guidance to users on where
to find their configuration files when errors occur. The enhanced error message now includes:

  1. Clear paths to both user and workspace configuration files
  2. Instructions on how to edit these files
  3. Better formatting to make the information more accessible

Reviewer Test Plan

To validate this change:

  1. Create a configuration file with a syntax error (e.g., add an extra comma or missing brace)
  2. Run the CLI and observe the enhanced error message
  3. Verify that the error message now includes the exact paths to the configuration files
  4. Verify that the paths are correctly formatted and point to the right locations

Example test:

1 # Create an invalid settings.json file
2 echo '{"invalid": json}' > ~/.qwen/settings.json
3 # Run the CLI and check the error message
4 npx gemini

The error message should now include clear instructions on where to find the configuration
files.

Testing Matrix

┌──────────┬────┬────┬────┐
│ │ 🍏 │ 🪟 │ 🐧 │
├──────────┼────┼────┼────┤
│ npm run │ ✅ │ ✅ │ ✅ │
│ npx │ ✅ │ ✅ │ ✅ │
│ Docker │ ✅ │ ✅ │ ✅ │
│ Podman │ ✅ │ - │ - │
│ Seatbelt │ ✅ │ - │ - │
└──────────┴────┴────┴────┘

Linked issues / bugs

Fixes #2

DS-Controller2 and others added 2 commits September 18, 2025 10:36
… configuration files have errors, users need to know where to find\nthese files to fix them. This change enhances the error message to\ninclude the exact paths to the user and workspace configuration files.\n\nFixes QwenLM#2

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
When configuration files have errors, users need to know where to find
these files to fix them. This change enhances the error message to
include the exact paths to the user and workspace configuration files.

Fixes QwenLM#2
@github-actions github-actions bot added the bug label Sep 18, 2025
@github-actions github-actions bot added area/platform priority/P3 Low - Minor, cosmetic, nice-to-fix issues type/question Further information is requested category/platform Platform compatibility type/bug Something isn't working as expected and removed area/platform labels Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category/platform Platform compatibility priority/P3 Low - Minor, cosmetic, nice-to-fix issues type/bug Something isn't working as expected type/question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Where is the config saved?

2 participants