diff options
Diffstat (limited to 'src/base/QXmppFutureUtils_p.h')
| -rw-r--r-- | src/base/QXmppFutureUtils_p.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/base/QXmppFutureUtils_p.h b/src/base/QXmppFutureUtils_p.h index 0cad95f5..f63e30b2 100644 --- a/src/base/QXmppFutureUtils_p.h +++ b/src/base/QXmppFutureUtils_p.h @@ -34,7 +34,8 @@ // We mean it. // -#include <QXmppIq.h> +#include "QXmppIq.h" +#include "QXmppSendResult.h" #include <memory> #include <variant> @@ -147,10 +148,10 @@ auto parseIq(Input &&sendResult, Converter convert) -> decltype(convert({})) } return convert(std::move(iq)); }, - [](QXmpp::PacketState) -> Result { + [](QXmpp::SendError error) -> Result { using Error = QXmppStanza::Error; return Error(Error::Wait, Error::UndefinedCondition, - QStringLiteral("Couldn't send request: lost connection.")); + QStringLiteral("Couldn't send request: ") + error.text); }, }, sendResult); |
