Open
Description
If Response::end()
fails, the response is consumed so there's no way to create a NickelError
without unsafe
(except that NickelError
has all fields public so it's possible to bypass the constructor completely). The reasoning for unsafe
on NickelError::without_response()
talks about deadlock if the response is not flushed, which is what the user is trying to do by calling Response::end()
. So if the flush fails, what are we meant to do? It seems like a guaranteed deadlock since we can't call bail()
now.