summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Api.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Api.cpp b/src/Api.cpp
index 4db54e9..7e05621 100644
--- a/src/Api.cpp
+++ b/src/Api.cpp
@@ -272,7 +272,7 @@ ptree Api::sendRequest(const string& method, const vector<HttpReqArg>& args) con
throw TgException(result.get("description", ""));
}
} catch (boost::property_tree::ptree_error& e) {
- throw TgException("tgbot-cpp library can't parse json response. " + e.what());
+ throw TgException("tgbot-cpp library can't parse json response. " + string(e.what()));
}
}