diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-05-11 16:25:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 16:25:56 +0200 |
commit | 03c146cd93ba48f7e8cab05e6214c8675d0dd1f9 (patch) | |
tree | 748cc29daf2581a8fb336fac8565f3f150d06a08 /tests/effects | |
parent | 517dd800f8e621aae0221f15c4ad7ad011c910b5 (diff) | |
download | Nim-03c146cd93ba48f7e8cab05e6214c8675d0dd1f9.tar.gz |
do not track 'raise Defect' in the .raises: [] clause anymore (#14298)
* do not track 'raise Defect' in the .raises: [] clause anymore * --panics:on maps 'raise Defect' to an unrecoverable fatal error * make tests green again * update the documentation too
Diffstat (limited to 'tests/effects')
-rw-r--r-- | tests/effects/teffects7.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/effects/teffects7.nim b/tests/effects/teffects7.nim index aee5e027d..73865b18d 100644 --- a/tests/effects/teffects7.nim +++ b/tests/effects/teffects7.nim @@ -1,5 +1,5 @@ discard """ - errormsg: "can raise an unlisted exception: ref FloatingPointDefect" + errormsg: "can raise an unlisted exception: ref ValueError" line: 10 """ @@ -7,7 +7,7 @@ proc foo() {.raises: [].} = try: discard except KeyError: - raise newException(FloatingPointDefect, "foo") + raise newException(ValueError, "foo") except Exception: discard |