Closed wrinkl3 closed 2 years ago
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
@swift-nio-bot add to allowlist
Motivation
When generating errors, we want Error wrapper objects to store the file and the line number that the error originated from. This will greatly simplify debugging of the runtime failures.
Modification
BoringSSLInternalError
to store file path and line number along with the BoringSSL error code.errorMessage
to appendfilepath:line
to the message stringCNIOBoringSSL_ERR_get_error_line
instead ofCNIOBoringSSL_ERR_get_error
to extract the necessary infoResult
Printing a BoringSSL error now shows the file path and the line number