SH-4142 FIX - made error messages a bit more informative

meow-7.2.2
Brad Payne (Vir Linden) 2013-04-26 10:17:41 -04:00
parent 638514ca0c
commit fb51bab6cd
1 changed files with 8 additions and 4 deletions

View File

@ -1166,12 +1166,14 @@ public:
/*virtual*/ void httpFailure()
{
const LLSD& content = getContent();
S32 status = getStatus();
const std::string& reason = getReason();
if (!content.isMap())
{
llwarns << "Malformed response contents" << content << llendl;
llwarns << "Malformed response contents " << content << " id " << mItemUUID << " status " << status << " reason " << reason << llendl;
return;
}
llwarns << "failed for " << mItemUUID << " content: " << ll_pretty_print_sd(content) << llendl;
llwarns << "failed for " << mItemUUID << " content: " << ll_pretty_print_sd(content) << " status " << status << " reason " << reason << llendl;
}
private:
LLPointer<LLInventoryCallback> mCallback;
@ -1345,12 +1347,14 @@ public:
/*virtual*/ void httpFailure()
{
const LLSD& content = getContent();
S32 status = getStatus();
const std::string& reason = getReason();
if (!content.isMap())
{
llwarns << "Malformed response contents" << content << llendl;
llwarns << "Malformed response contents " << content << " id " << mItemUUID << " status " << status << " reason " << reason << llendl;
return;
}
llwarns << "failed for " << mItemUUID << " content: " << ll_pretty_print_sd(content) << llendl;
llwarns << "failed for " << mItemUUID << " content: " << ll_pretty_print_sd(content) << " status " << status << " reason " << reason << llendl;
}
private:
LLPointer<LLInventoryCallback> mCallback;