From 035134de429b5d99c5607c5fae912762bebb6008 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 6 Feb 2019 15:51:21 +0100 Subject: make streams.close more forgiving in order to break less code out there --- lib/pure/streams.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/pure') 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) -- cgit 1.4.1-2-gfad0