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

@@ -81,7 +81,7 @@ func (e TransportErrorCode) String() string {
return "NO_VIABLE_PATH"
default:
if e.IsCryptoError() {
return fmt.Sprintf("CRYPTO_ERROR (%#x)", uint16(e))
return fmt.Sprintf("CRYPTO_ERROR %#x", uint16(e))
}
return fmt.Sprintf("unknown error code: %#x", uint16(e))
}