changeset 1978:53c510b2e097

Added text of caught exceptions in sumwars log.
author thegusty999
date Fri, 28 Oct 2011 08:28:41 +0000
parents 391b3e152d50
children d8cc8dfe0caf
files src/gui/graphicmanager.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gui/graphicmanager.cpp	Fri Oct 28 08:04:59 2011 +0000
+++ b/src/gui/graphicmanager.cpp	Fri Oct 28 08:28:41 2011 +0000
@@ -444,6 +444,7 @@
 		catch (Ogre::Exception& e)
 		{
 			WARNING("can't create mesh %s", info.m_source.c_str());
+			DEBUG ("(Caught exception: %s)", e.what ());
 			obj_ent = m_scene_manager->createEntity(name, "dummy_r.mesh");
 		}
 		obj= static_cast<Ogre::MovableObject*>(obj_ent);
@@ -458,6 +459,7 @@
 		catch (Ogre::Exception& e)
 		{	
 			WARNING("can't create particle system %s", info.m_source.c_str());
+			DEBUG ("(Caught exception: %s)", e.what ());
 		}
 		obj= static_cast<Ogre::MovableObject*>(part);
 	}