add missing `{.raises.}` to `addConfigFileContent` (#103)

`addConfigFileContent` can raise `ConfigurationError`. Declare so.
This commit is contained in:
Etan Kissling 2024-02-20 22:14:04 +01:00 committed by GitHub
parent 57ff0b8555
commit 0adf3b7db7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -881,7 +881,7 @@ proc addConfigFile*(secondarySources: auto,
proc addConfigFileContent*(secondarySources: auto,
Format: type,
content: string) =
content: string) {.raises: [ConfigurationError].} =
try:
secondarySources.data.add decode(Format, content,
type(secondarySources.data[0]))