add missing `{.raises.}` to `addConfigFileContent` (#103)
`addConfigFileContent` can raise `ConfigurationError`. Declare so.
This commit is contained in:
parent
57ff0b8555
commit
0adf3b7db7
|
@ -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]))
|
||||
|
|
Loading…
Reference in New Issue