Skip to content
Snippets Groups Projects
Commit ed7963ba authored by Rider Linden's avatar Rider Linden
Browse files

SL-230: Azumarill viewer was incorrectly swallowing upload errors returned...

SL-230: Azumarill viewer was incorrectly swallowing upload errors returned from the server.  Correctly report errors and use upload cost provided by server.
parent bbe363c3
No related branches found
No related tags found
No related merge requests found
......@@ -722,7 +722,9 @@ void LLViewerAssetUpload::AssetInventoryUploadCoproc(LLCoreHttpUtil::HttpCorouti
httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];
status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults);
if (!status)
std::string ulstate = result["state"].asString();
if ((!status) || (ulstate != "complete"))
{
HandleUploadError(status, result, uploadInfo);
if (uploadInfo->showUploadDialog())
......@@ -730,7 +732,7 @@ void LLViewerAssetUpload::AssetInventoryUploadCoproc(LLCoreHttpUtil::HttpCorouti
return;
}
S32 uploadPrice = uploadInfo->getEconomyUploadCost();
S32 uploadPrice = result["upload_price"].asInteger();//uploadInfo->getEconomyUploadCost();
if (uploadPrice > 0)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment