Currently, it's possible for requests that end to send a null error on the error callback if data isn't written to the error as intended. This can cause consumers of the error callback to get tripped up if they're expecting an Error and receive null instead. To mitigate this, we should be returning an unknown Error instead as a fallback. Without this, null can cause system errors and crashes if not handled properly.
Currently, it's possible for requests that end to send a
null
error on the error callback if data isn't written to the error as intended. This can cause consumers of the error callback to get tripped up if they're expecting anError
and receivenull
instead. To mitigate this, we should be returning an unknownError
instead as a fallback. Without this,null
can cause system errors and crashes if not handled properly.