mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-03 20:44:46 +00:00
Refines raises list in osproc (#21323)
* Remove Exception from raises in closeImpl * Update osproc.nim * refine errors * add ValueError * cast raises * refactor raises lists * Update lib/pure/osproc.nim * Update lib/pure/osproc.nim --------- Co-authored-by: Antonis Geralis <43617260+planetis-m@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
@@ -146,7 +146,7 @@ proc wsFlush(s: Stream) =
|
||||
s.lastFlush = s.buf.len
|
||||
|
||||
proc rsClose(s: Stream) =
|
||||
{.cast(tags: []).}:
|
||||
{.cast(raises: [IOError, OSError]), cast(tags: []).}: # todo fixme maybe do something?
|
||||
var s = ReadSocketStream(s)
|
||||
s.data.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user