Skip to content

Conversation

@miniBill
Copy link
Collaborator

@miniBill miniBill commented Oct 7, 2025

This PR does two things:

  1. always tries to parse a file as both json and yaml (favouring the most probable one)
  2. gives the error message coming from the most probable format

This means that yaml files mostly get yaml errors, and json file json errors, but if we guess wrong we still use both parsers.

@miniBill
Copy link
Collaborator Author

miniBill commented Oct 7, 2025

This fixes #40

@github-actions
Copy link

github-actions bot commented Oct 7, 2025

@wolfadex wolfadex merged commit 3e0dc26 into main Oct 7, 2025
2 checks passed
@wolfadex wolfadex deleted the improved-yaml-errors branch October 7, 2025 14:21
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.

3 participants