From a85526bfac04f033337edcd31aa53e8e33554ec1 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 15 Dec 2012 23:12:54 -0500 Subject: [PATCH] fix comment error messages not showing --- src/client/Client.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index f46222bd6..326bb055a 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