mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-02 12:32:40 +02:00
fix comment error messages not showing
This commit is contained in:
@@ -1308,7 +1308,7 @@ RequestStatus Client::AddComment(int saveID, std::string comment)
|
|||||||
|
|
||||||
if(status!=1)
|
if(status!=1)
|
||||||
{
|
{
|
||||||
lastError = ((json::Number)objDocument["Error"]).Value();
|
lastError = ((json::String)objDocument["Error"]).Value();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(status!=1)
|
if(status!=1)
|
||||||
@@ -1480,8 +1480,11 @@ RequestStatus Client::UnpublishSave(int saveID)
|
|||||||
int status = ((json::Number)objDocument["Status"]).Value();
|
int status = ((json::Number)objDocument["Status"]).Value();
|
||||||
|
|
||||||
if(status!=1)
|
if(status!=1)
|
||||||
|
{
|
||||||
|
lastError = ((json::String)objDocument["Error"]).Value();
|
||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (json::Exception &e)
|
catch (json::Exception &e)
|
||||||
{
|
{
|
||||||
lastError = "Could not read response";
|
lastError = "Could not read response";
|
||||||
@@ -1828,7 +1831,7 @@ Thumbnail * Client::GetThumbnail(int saveID, int saveDate)
|
|||||||
//Check active requests for any "forgotten" requests
|
//Check active requests for any "forgotten" requests
|
||||||
for(i = 0; i < IMGCONNS; i++)
|
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(activeThumbRequests[i] && http_async_req_status(activeThumbRequests[i]))
|
||||||
{
|
{
|
||||||
//If we haven't already, mark the request as completed
|
//If we haven't already, mark the request as completed
|
||||||
|
Reference in New Issue
Block a user