diff options
| author | 2025-03-22 16:28:04 +0000 | |
|---|---|---|
| committer | 2025-03-22 16:28:04 +0000 | |
| commit | 78b0b45f5b493df229f1c46d27cc41474eaad4cb (patch) | |
| tree | edf3902e03d09c863664534e10fcf346bde5e547 /modules | |
| parent | Remove some obsolete ConvToNum overloads. (diff) | |
Replace string concatenation with a format string.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/spanningtree/capab.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/spanningtree/capab.cpp b/modules/spanningtree/capab.cpp index 9198b9457..2efcf2cb8 100644 --- a/modules/spanningtree/capab.cpp +++ b/modules/spanningtree/capab.cpp @@ -378,10 +378,10 @@ bool TreeSocket::Capab(const CommandBase::Params& params) if (proto_version < PROTO_OLDEST) { - SendError("CAPAB negotiation failed: Server is using protocol version " - + (proto_version ? ConvToStr(proto_version) : "1201 or older") - + " which is too old to link with this server (protocol versions " - + ConvToStr(PROTO_OLDEST) + " to " + ConvToStr(PROTO_NEWEST) + " are supported)"); + const auto proto_str = proto_version ? ConvToStr(proto_version) : "1201 or older"; + SendError(FMT::format("CAPAB negotiation failed. Server is using protocol version {} which" + " is too old to link with this server (protocol versions {} to {} are supported)", + proto_str, (uint16_t)PROTO_OLDEST, (uint16_t)PROTO_NEWEST)); return false; } |
