-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
When decoding a TOML file containing a value which is supposed to be quoted (e.g. key = "value"
) but the quotes are missing (key = value
), the error message is a bit surprising.
Actual error message:
Exception in thread "main" ParseError(errorDescription=Expected EOF, but got 'k'., line=1, cause=null)
at cc.ekblad.toml.parser.DocumentKt.parseTomlDocument(Document.kt:47)
at cc.ekblad.toml.serialization.TomlDeserializerKt.from(TomlDeserializer.kt:17)
...
Expected error message: Something which suggests there is something wrong with the value.
Code to reproduce:
val mapper = tomlMapper { }
val config: Map<String, String> = mapper.decode("key = value")
dcoraboeuf
Metadata
Metadata
Assignees
Labels
No labels