diff options
author | Araq <rumpf_a@web.de> | 2019-02-06 15:51:21 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-02-06 15:51:21 +0100 |
commit | 035134de429b5d99c5607c5fae912762bebb6008 (patch) | |
tree | feedd35b4b07a1c2fbdf8f7e3f9c333c592cd7bf | |
parent | b5991f52b937dfc6bc9ca3ba42e31b40fd353528 (diff) | |
download | Nim-035134de429b5d99c5607c5fae912762bebb6008.tar.gz |
make streams.close more forgiving in order to break less code out there
-rw-r--r-- | lib/pure/streams.nim | 2 |
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) |