summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-02-06 15:51:21 +0100
committerAraq <rumpf_a@web.de>2019-02-06 15:51:21 +0100
commit035134de429b5d99c5607c5fae912762bebb6008 (patch)
treefeedd35b4b07a1c2fbdf8f7e3f9c333c592cd7bf /lib
parentb5991f52b937dfc6bc9ca3ba42e31b40fd353528 (diff)
downloadNim-035134de429b5d99c5607c5fae912762bebb6008.tar.gz
make streams.close more forgiving in order to break less code out there
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/streams.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/streams.nim b/lib/pure/streams.nim
index b6e77bbc0..cd6f01b6a 100644
--- a/lib/pure/streams.nim
+++ b/lib/pure/streams.nim
@@ -46,7 +46,7 @@ type
                                  ## accessible so that a stream implementation
                                  ## can override them.
     closeImpl*: proc (s: Stream)
-      {.nimcall, raises: [Defect, IOError, OSError], tags: [], gcsafe.}
+      {.nimcall, raises: [Exception, IOError, OSError], tags: [ReadIOEffect, WriteIOEffect], gcsafe.}
     atEndImpl*: proc (s: Stream): bool
       {.nimcall, raises: [Defect, IOError, OSError], tags: [], gcsafe.}
     setPositionImpl*: proc (s: Stream, pos: int)