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:
parent
cac49694c0
commit
56a4d246a4
3 changed files with 23 additions and 22 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue