diff --git a/indra/llimage/llpngwrapper.cpp b/indra/llimage/llpngwrapper.cpp
index 640eda7b0108b110a259b2a414b4abbdbfd4246f..da289ea889f796f15a3ba5dcd082b1f0dd33acdb 100644
--- a/indra/llimage/llpngwrapper.cpp
+++ b/indra/llimage/llpngwrapper.cpp
@@ -34,9 +34,10 @@
 #include "llexception.h"
 
 namespace {
-struct PngError: public LLException
+// Failure to load an image shouldn't crash the whole viewer.
+struct PngError: public LLContinueError
 {
-    PngError(png_const_charp msg): LLException(msg) {}
+    PngError(png_const_charp msg): LLContinueError(msg) {}
 };
 } // anonymous namespace
 
diff --git a/indra/llkdu/llimagej2ckdu.cpp b/indra/llkdu/llimagej2ckdu.cpp
index 341c47a268ccaf9abaee3c3cbbf53fafcec3c94e..4c2eac9eea366baf70d6b2b0d7b37eb8b37415c4 100644
--- a/indra/llkdu/llimagej2ckdu.cpp
+++ b/indra/llkdu/llimagej2ckdu.cpp
@@ -38,9 +38,10 @@
 #include <boost/exception/diagnostic_information.hpp>
 
 namespace {
-struct KDUError: public LLException
+// Failure to load an image shouldn't crash the whole viewer.
+struct KDUError: public LLContinueError
 {
-    KDUError(const std::string& msg): LLException(msg) {}
+    KDUError(const std::string& msg): LLContinueError(msg) {}
 };
 } // anonymous namespace