diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index 4b7115d6b3911df00b3cbfa706971175f7beb26a..720a4ff2dff8319a6b0a5143225464d668751c95 100755
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -3455,7 +3455,7 @@ void LLAppearanceMgr::serverAppearanceUpdateCoro()
                 }
             }
 
-            std::string message = (result.has("error")) ? result["error"] : status.toString();
+            std::string message = (result.has("error")) ? result["error"].asString() : status.toString();
             LL_WARNS("Avatar") << "Appearance Failure. server responded with \"" << message << "\"" << LL_ENDL;
 
             // We may have requested a bake for a stale COF (especially if the inventory