Skip to content

fix: include resolved path in loadConfig JSON SyntaxError - #40

Merged
royalpinto007 merged 2 commits into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-loadconfig-syntax-error-085b
Sep 12, 2026
Merged

fix: include resolved path in loadConfig JSON SyntaxError#40
royalpinto007 merged 2 commits into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-loadconfig-syntax-error-085b

Conversation

@sharadvc

Copy link
Copy Markdown
Contributor

Summary

loadConfig JSON parse failures now include the resolved absolute config path (aligned with loadManifest), including when explicitPath is relative.

Test plan

  • npm test — relative broken config asserts absolute path in the error message

Fixes #30

Co-authored-by: Sharad. <sharadvc@users.noreply.github.com>
Co-authored-by: Sharad. <sharadvc@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Welcome, @sharadvc, and thanks for your first pull request to MCP-audit.

A quick look at CONTRIBUTING.md covers how things are set up and run here.

I'll review this shortly. Ask anything in the thread if something is unclear.

@royalpinto007
royalpinto007 merged commit a9a02d9 into AgentPostmortem:main Sep 12, 2026
10 checks passed
@github-actions

Copy link
Copy Markdown

Merged. Thanks a lot, @sharadvc.

Contributions like this are what keep MCP-audit moving.

A star on the repo would mean a lot if this project is useful to you.

Happy to see more from you whenever you have the time.

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.

loadConfig JSON SyntaxError omits the file path

2 participants