summaryrefslogtreecommitdiff
path: root/src/Api.cpp
diff options
context:
space:
mode:
authorJellyBrick <shlee1503@naver.com>2018-06-08 15:41:00 +0900
committerJellyBrick <shlee1503@naver.com>2018-06-08 15:41:00 +0900
commit1aee6428aef1fe5179e149477bf48f73f32d3ada (patch)
treea808d19d984cf0eab4dbd51438b3c47c7fa48b67 /src/Api.cpp
parentb853b778c715d090dc321f3a977bf477947befcf (diff)
Fix compilation error
Diffstat (limited to 'src/Api.cpp')
-rw-r--r--src/Api.cpp4
1 files 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<HttpReqArg>& args) con
if (result.get<bool>("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()));
}
}