Skip to content

Commit

Permalink
Add AssertionError to list of raises.
Browse files Browse the repository at this point in the history
  • Loading branch information
euantorano committed Jun 16, 2017
1 parent 85c7a32 commit 1e3e1f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotenv.nim
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ proc initDotEnv*(directory: string, fileName: string = ".env"): DotEnv {.raises:

result = DotEnv(filePath: path)

proc initDotEnv*(): DotEnv {.raises: [DotEnvPathError, ref OSError], tags: [ReadDirEffect].} =
proc initDotEnv*(): DotEnv {.raises: [DotEnvPathError, ref OSError, ref AssertionError], tags: [ReadDirEffect].} =
## Initialise a `DotEnv` instance using the current working directory.
let path = joinpath(getCurrentDir(), ".env")
if not existsFile(path):
Expand Down

0 comments on commit 1e3e1f6

Please sign in to comment.