DD-274 : Do not display super long error description (there are in the log though)

meow-7.2.2
Merov Linden 2014-11-08 16:07:31 -08:00
parent 69baff7415
commit 20173c9747
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@ void log_SLM_warning(const std::string& request, U32 status, const std::string&
// Prompt the user with the warning (so they know why things are failing)
LLSD subs;
subs["[ERROR_REASON]"] = reason;
subs["[ERROR_DESCRIPTION]"] = description;
// We do show long descriptions in the alert (unlikely to be readable). The description string will be in the log though.
subs["[ERROR_DESCRIPTION]"] = (description.length() <= 512 ? description : "");
LLNotificationsUtil::add("MerchantTransactionFailed", subs);
}