qerr: include role (remote / local) in error string representations (#3629)

This commit is contained in:
Marten Seemann
2022-12-08 19:58:52 +13:00
committed by GitHub
parent 8d496ebb5e
commit d2512193da
5 changed files with 27 additions and 18 deletions

View File

@@ -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)
}