mirror of
https://github.com/status-im/nim-confutils.git
synced 2025-03-03 13:20:36 +00:00
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…
x
Reference in New Issue
Block a user