Skip to content

Commit

Permalink
add missing {.raises.} to addConfigFileContent (#103)
Browse files Browse the repository at this point in the history
`addConfigFileContent` can raise `ConfigurationError`. Declare so.
  • Loading branch information
etan-status committed Feb 20, 2024
1 parent 57ff0b8 commit 0adf3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion confutils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down

0 comments on commit 0adf3b7

Please sign in to comment.