diff options
Diffstat (limited to 'tests/exception/twrongexc.nim')
-rw-r--r-- | tests/exception/twrongexc.nim | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/exception/twrongexc.nim b/tests/exception/twrongexc.nim index b224d4c83..d229c5749 100644 --- a/tests/exception/twrongexc.nim +++ b/tests/exception/twrongexc.nim @@ -1,13 +1,8 @@ discard """ - file: "twrongexc.nim" outputsub: "Error: unhandled exception: [ValueError]" exitcode: "1" """ try: raise newException(ValueError, "") -except OverflowError: +except OverflowDefect: echo("Error caught") - - - - |