From 4413f9be879c14328988ce4d285c1dfa263db027 Mon Sep 17 00:00:00 2001
From: "Brad Payne (Vir Linden)" <vir@lindenlab.com>
Date: Mon, 10 Dec 2018 15:02:41 +0000
Subject: [PATCH] SL-288, SL-10163 - error reporting for animation upload
 failures.

---
 indra/newview/llviewerassetupload.cpp | 9 +++++++++
 indra/newview/llvoavatar.cpp          | 1 +
 2 files changed, 10 insertions(+)

diff --git a/indra/newview/llviewerassetupload.cpp b/indra/newview/llviewerassetupload.cpp
index a320f07a9fc..7c6721cad93 100644
--- a/indra/newview/llviewerassetupload.cpp
+++ b/indra/newview/llviewerassetupload.cpp
@@ -488,6 +488,14 @@ LLSD LLNewFileResourceUploadInfo::exportTempFile()
 						errorLabel = "";
 						error = false;
 					}
+					else
+					{
+						errorMessage = "Failed saving temporary animation file";
+					}
+				}
+				else
+				{
+					errorMessage = "Failed reading animation file";
 				}
 			}
 		}
@@ -908,6 +916,7 @@ void LLViewerAssetUpload::HandleUploadError(LLCore::HttpStatus status, LLSD &res
     {
         args["FILE"] = uploadInfo->getDisplayName();
         args["REASON"] = reason;
+        args["ERROR"] = reason;
     }
 
     LLNotificationsUtil::add(label, args);
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 487730e209d..b1f04601fdc 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -6145,6 +6145,7 @@ LLJoint *LLVOAvatar::getJoint( const std::string &name )
 	LLJoint* jointp = NULL;
 
 	if (iter == mJointMap.end() || iter->second == NULL)
+	{
 		joint_alias_map_t::const_iterator alias_iter = mJointAliasMap.find(name);
 		std::string canonical_name;
 		if (alias_iter != mJointAliasMap.end())
-- 
GitLab