summary refs log tree commit diff stats
path: root/drnim/drnim.nim
diff options
context:
space:
mode:
authorIvan Bobev <bobeff@protonmail.ch>2020-05-27 09:34:13 +0300
committerGitHub <noreply@github.com>2020-05-27 08:34:13 +0200
commitcc65ae6011eeb7f85726e6eebfc8dee922ad3451 (patch)
treebefc3c9e8a76b445aa4e976bbcbbad28dcb8e4de /drnim/drnim.nim
parent0533c435471a1f4e1df27246e238ad5609e857da (diff)
downloadNim-cc65ae6011eeb7f85726e6eebfc8dee922ad3451.tar.gz
Change `UnpackError` with `UnpackDefect` (#14457)
* Change `UnpackError` with `UnpackDefect`

The deprecation warning for `UnpackError` exception raised by some
`inline` procedures in the Nim standard library propagates to the user
code. If the user code has a requirement for building without warnings
this is a problem for the successful execution of the tests. In order
to resolve this, all occurrences of `UnpackError` in the Nim code base
are changed to `UnpackDefect`. Only the type alias is retained to not
break other people's user code since `UnpackError` is exported type.

* Remove the catching of `UnpackDefect`

Defect exceptions should not be cached, because they indicate problem in
the API usage. The code in `nimblesocket.nim` is rewritten to first
check whether there is a value set into the `knownDomain` variable from
the `Option` type before usage.
Diffstat (limited to 'drnim/drnim.nim')
0 files changed, 0 insertions, 0 deletions