diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp index 7b0486da4850443a51cc761acbd5bbfe617cd719..2df297fc420e900c3d1c2bd6c9c8a3e22aa343c5 100644 --- a/indra/newview/llfloatersnapshot.cpp +++ b/indra/newview/llfloatersnapshot.cpp @@ -1045,9 +1045,24 @@ class LLSendWebResponder : public LLHTTPClient::Responder { public: - void result(const LLSD& content) + virtual void error(U32 status, const std::string& reason) { - LLWeb::loadURLExternal(content["response_url"]); + llwarns << status << ": " << reason << llendl; + LLNotificationsUtil::add("ShareToWebFailed"); + } + + virtual void result(const LLSD& content) + { + std::string response_url = content["response_url"].asString(); + + if (!response_url.empty()) + { + LLWeb::loadURLExternal(response_url); + } + else + { + LLNotificationsUtil::add("ShareToWebFailed"); + } } }; diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index 5680b91c054de8bec7e8d1c73615697da9d78409..c39a91281ef55715956bd3af7253d6831e118a46 100644 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -5292,6 +5292,13 @@ Failed to find [TYPE] in database. Failed to find [TYPE] named [DESC] in database. </notification> + <notification + icon="notify.tga" + name="ShareToWebFailed" + type="notify"> + Failed to upload image to web. + </notification> + <notification icon="notify.tga" name="InvalidWearable"