From 1aee6428aef1fe5179e149477bf48f73f32d3ada Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Fri, 8 Jun 2018 15:41:00 +0900 Subject: Fix compilation error --- src/Api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api.cpp b/src/Api.cpp index 125d0f8..84fda2d 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -1055,10 +1055,10 @@ ptree Api::sendRequest(const string& method, const vector& args) con if (result.get("ok", false)) { return result.get_child("result"); } else { - throw TgException(result.get("description", ""); + throw TgException(result.get("description", "")); } } catch (boost::property_tree::ptree_error& e) { - throw TgException("tgbot-cpp library can't parse json response. " + string(e.what()); + throw TgException("tgbot-cpp library can't parse json response. " + string(e.what())); } } -- cgit v1.2.3