summary refs log tree commit diff stats
path: root/tests/exception/tfinally4.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-04-27 23:11:36 +0200
committerAraq <rumpf_a@web.de>2015-04-27 23:11:59 +0200
commitc6398d408de89672d1df21ee84507978f2320ba8 (patch)
treedc2226977e14097049e6f1e694243dbd781a3c36 /tests/exception/tfinally4.nim
parentb34bd3b16371ac05fd293a878976d6dd2326491c (diff)
downloadNim-c6398d408de89672d1df21ee84507978f2320ba8.tar.gz
fixes #1888
Diffstat (limited to 'tests/exception/tfinally4.nim')
-rw-r--r--tests/exception/tfinally4.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/exception/tfinally4.nim b/tests/exception/tfinally4.nim
index 05c57c4f5..3aa707ff6 100644
--- a/tests/exception/tfinally4.nim
+++ b/tests/exception/tfinally4.nim
@@ -8,19 +8,19 @@ discard """
 var raiseEx = true
 var returnA = true
 var returnB = false
- 
-proc main: int = 
+
+proc main: int =
   try: #A
     try: #B
       if raiseEx:
-        raise newException(EOS, "")
+        raise newException(OSError, "")
       return 3
     finally: #B
       echo "B1"
       if returnB:
         return 2
       echo "B2"
-  except EOS: #A
+  except OSError: #A
     echo "catch"
   finally: #A
     echo "A1"