From 40f29b5c626b5ee1c1f21c828d478d74a6557d2b Mon Sep 17 00:00:00 2001 From: Adam Aposhian Date: Tue, 13 Feb 2024 17:14:08 -0700 Subject: [PATCH] add token::get_message Signed-off-by: Adam Aposhian --- src/mqtt/token.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mqtt/token.h b/src/mqtt/token.h index 48703db..abedc65 100644 --- a/src/mqtt/token.h +++ b/src/mqtt/token.h @@ -420,6 +420,13 @@ public: * @return The reason code for the operation. */ ReasonCode get_reason_code() const { return reasonCode_; } + + /** + * Get the error message from the C library + * @return Error message for the operation + */ + string get_message() const { return errMsg_; } + /** * Blocks the current thread until the action this token is associated * with has completed.