From d0dba6e4ec852db7c172ef8d7f7f8445968ae73d Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Sat, 11 Mar 2023 21:48:01 -0500 Subject: [PATCH] Improve error handling in snapshot code --- indra/newview/llviewerwindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 83113cbc054..66fac588b4d 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -4859,6 +4859,11 @@ void LLViewerWindow::saveImageLocal(LLImageFormatted *image, const snapshot_save if (ec.failed()) { LL_WARNS() << "Failed check for is directory for filesystem path " << lastSnapshotDir << " : " << ec.message() << LL_ENDL; + LLSD args; + args["PATH"] = lastSnapshotDir; + LLNotificationsUtil::add("SnapshotToLocalDirNotExist", args); + resetSnapshotLoc(); + failure_cb(); return; } if (!is_dir) @@ -4874,6 +4879,11 @@ void LLViewerWindow::saveImageLocal(LLImageFormatted *image, const snapshot_save if (ec.failed()) { LL_WARNS() << "Failed to read disk space for filesystem path " << lastSnapshotDir << " : " << ec.message() << LL_ENDL; + LLSD args; + args["PATH"] = lastSnapshotDir; + LLNotificationsUtil::add("SnapshotToLocalDirNotExist", args); + resetSnapshotLoc(); + failure_cb(); return; } if (b_space.free < image->getDataSize()) -- GitLab