Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have some stricter parsing of the dolos.toml config #337

Open
mpizenberg opened this issue Sep 10, 2024 · 0 comments
Open

Have some stricter parsing of the dolos.toml config #337

mpizenberg opened this issue Sep 10, 2024 · 0 comments

Comments

@mpizenberg
Copy link

Currently the parsing of the config file dolos.toml is rather permissive and doesn’t prevent or warn in the case of unknown fields, or rather misplaced fields. It got me into trouble because I had manually written:

[serve]
listen_path = "dolos.socket"
magic = 764824073

Instead of [serve.ouroboros] for the section title. This lead to an unrelated error message about the database when running dolos serve.

It would be very nice if those kind of mistakes where caught at parsing time.

@scarmuega scarmuega moved this to 🆕 New in Development Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant