forked from quic-go/quic-go
qerr: include role (remote / local) in error string representations (#3629)
This commit is contained in:
@@ -340,7 +340,7 @@ func (h *cryptoSetup) onError(alert uint8, message string) {
|
||||
if alert == 0 {
|
||||
err = &qerr.TransportError{ErrorCode: qerr.InternalError, ErrorMessage: message}
|
||||
} else {
|
||||
err = qerr.NewCryptoError(alert, message)
|
||||
err = qerr.NewLocalCryptoError(alert, message)
|
||||
}
|
||||
h.runner.OnError(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user