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:
ringabout
2023-02-14 20:11:14 +08:00
committed by GitHub
parent cac49694c0
commit 56a4d246a4
3 changed files with 23 additions and 22 deletions

View File

@@ -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()