pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] [pingus] push by address@hidden - Use log error message, no


From: pingus
Subject: [Pingus-CVS] [pingus] push by address@hidden - Use log error message, not an exception in case of error on 2011-11-28 20:01 GMT
Date: Mon, 28 Nov 2011 20:05:30 +0000

Revision: c768416eec76
Author:   Ingo Ruhnke <address@hidden>
Date:     Mon Nov 28 12:01:54 2011
Log:      Use log error message, not an exception in case of error

http://code.google.com/p/pingus/source/detail?r=c768416eec76

Modified:
 /src/pingus/ground_map.cpp

=======================================
--- /src/pingus/ground_map.cpp  Mon Nov 28 12:00:37 2011
+++ /src/pingus/ground_map.cpp  Mon Nov 28 12:01:54 2011
@@ -203,9 +203,9 @@
 {
   if (sprovider.get_surface()->format->BitsPerPixel != 8)
   {
-    raise_exception(std::runtime_error,
- "SpotMap::put_alpha_surface: Image has wrong color depth: " - << static_cast<int>(sprovider.get_surface()->format->BitsPerPixel));
+    log_error("Image has wrong color depth: "
+ << static_cast<int>(sprovider.get_surface()->format->BitsPerPixel));
+    return;
   }

   int swidth  = sprovider.get_width();



reply via email to

[Prev in Thread] Current Thread [Next in Thread]