From 1e3e1f6bd9b301188b38a8a84115b512974e6b36 Mon Sep 17 00:00:00 2001 From: Euan T Date: Fri, 16 Jun 2017 13:55:10 +0100 Subject: [PATCH] Add AssertionError to list of raises. --- src/dotenv.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotenv.nim b/src/dotenv.nim index 0b27b5f..94e3068 100644 --- a/src/dotenv.nim +++ b/src/dotenv.nim @@ -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):