summaryrefslogtreecommitdiff
path: root/src/client/Client.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2012-12-16 04:12:54 (GMT)
committer jacob1 <jfu614@gmail.com>2012-12-16 04:12:54 (GMT)
commita85526bfac04f033337edcd31aa53e8e33554ec1 (patch)
tree963eeacd9c8bfd9784644d77e78c8fba7bc97454 /src/client/Client.cpp
parent462bd7bdf914b2663c7e574a0bf4de6d4a8a723c (diff)
downloadpowder-a85526bfac04f033337edcd31aa53e8e33554ec1.zip
powder-a85526bfac04f033337edcd31aa53e8e33554ec1.tar.gz
fix comment error messages not showing
Diffstat (limited to 'src/client/Client.cpp')
-rw-r--r--src/client/Client.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp
index f46222b..326bb05 100644
--- a/src/client/Client.cpp
+++ b/src/client/Client.cpp
@@ -1308,7 +1308,7 @@ RequestStatus Client::AddComment(int saveID, std::string comment)
if(status!=1)
{
- lastError = ((json::Number)objDocument["Error"]).Value();
+ lastError = ((json::String)objDocument["Error"]).Value();
}
if(status!=1)
@@ -1480,7 +1480,10 @@ RequestStatus Client::UnpublishSave(int saveID)
int status = ((json::Number)objDocument["Status"]).Value();
if(status!=1)
+ {
+ lastError = ((json::String)objDocument["Error"]).Value();
goto failure;
+ }
}
catch (json::Exception &e)
{
@@ -1828,7 +1831,7 @@ Thumbnail * Client::GetThumbnail(int saveID, int saveDate)
//Check active requests for any "forgotten" requests
for(i = 0; i < IMGCONNS; i++)
{
- //If the request is active, and we've recieved a response
+ //If the request is active, and we've received a response
if(activeThumbRequests[i] && http_async_req_status(activeThumbRequests[i]))
{
//If we haven't already, mark the request as completed