Skip to content

Commit

Permalink
Update to 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
khchen committed May 7, 2021
1 parent 3408f52 commit 84e0247
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hashlib.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "1.0.0"
version = "1.0.1"
author = "Ward"
description = "Hash Library for Nim"
license = "MIT"
Expand Down
5 changes: 4 additions & 1 deletion hashlib/common.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Binary file removed tests/api_test.exe
Binary file not shown.

0 comments on commit 84e0247

Please sign in to comment.