fix comment error messages not showing

This commit is contained in:
jacob1 2012-12-15 23:12:54 -05:00
parent 462bd7bdf9
commit a85526bfac

View File

@ -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,8 +1480,11 @@ 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)
{
lastError = "Could not read response";
@ -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