make tests green again

This commit is contained in:
Andreas Rumpf 2018-08-10 17:27:30 +02:00
commit 32afc1a562
2 changed files with 2 additions and 2 deletions

View file

@ -42,6 +42,6 @@ test "arithmetic failure":
expect(ArithmeticError):
err()
expect(ArithmeticError, SystemError):
expect(ArithmeticError, CatchableError):
discard foo()

View file

@ -87,7 +87,7 @@ proc parseResponse(): JsonNode =
var excMsg = key & "("
if (var n=result["key2"]; n != nil):
excMsg &= n.str
raise newException(SystemError, excMsg)
raise newException(CatchableError, excMsg)