diff --git a/hashlib.nimble b/hashlib.nimble index f39895d..1413c5f 100644 --- a/hashlib.nimble +++ b/hashlib.nimble @@ -1,6 +1,6 @@ # Package -version = "1.0.0" +version = "1.0.1" author = "Ward" description = "Hash Library for Nim" license = "MIT" diff --git a/hashlib/common.nim b/hashlib/common.nim index ae67ffa..cd727fe 100644 --- a/hashlib/common.nim +++ b/hashlib/common.nim @@ -471,7 +471,10 @@ macro hashRegister*(x: untyped): untyped = macro availableHashes*(): untyped = let hashes = hashStorage() if hashes.len == 0: - raise newException(IndexError, "no hash function imported") + when declared(IndexDefect): + raise newException(IndexDefect, "no hash function imported") + else: + raise newException(IndexError, "no hash function imported") result = newNimNode(nnkBracket) for x in hashes: diff --git a/tests/api_test.exe b/tests/api_test.exe deleted file mode 100644 index 17d4f78..0000000 Binary files a/tests/api_test.exe and /dev/null differ