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

Bad error message for invalid footer links in configuration #1267

Open
LukasKalbertodt opened this issue Oct 28, 2024 · 0 comments
Open

Bad error message for invalid footer links in configuration #1267

LukasKalbertodt opened this issue Oct 28, 2024 · 0 comments
Labels
area:backend Everything backend related kind:improvement

Comments

@LukasKalbertodt
Copy link
Member

With this configuration:

[general]
footer_links = [
    { label = { de = "Foo" }, link = "https://opencast.org" },
]

Tobira emits this error:

 ‣ failed to read config file '../util/dev-config/config.toml'
   ‣ failed to deserialize configuration from file '../util/dev-config/config.toml'
     ‣ data did not match any variant of untagged enum FooterLink for key `general.footer_links` at line 50 column 1

That's not helpful at all. The problem here is that the language en is required, all other languages are optional. The error message should be improved.

@LukasKalbertodt LukasKalbertodt added area:backend Everything backend related kind:improvement labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:backend Everything backend related kind:improvement
Projects
None yet
Development

No branches or pull requests

1 participant