Print the exception message when CSJ2K decoding fails for sculpty textures

This commit is contained in:
John Hurliman
2009-10-28 01:30:39 -07:00
parent 8254256fe9
commit e31024f08b

View File

@@ -299,12 +299,12 @@ namespace OpenSim.Region.Physics.Meshing
}
catch (IndexOutOfRangeException)
{
m_log.Error("[PHYSICS]: OpenJpeg was unable to decode this. Physics Proxy generation failed");
m_log.Error("[PHYSICS]: OpenJpeg was unable to decode this. Physics Proxy generation failed");
return null;
}
catch (Exception)
catch (Exception ex)
{
m_log.Error("[PHYSICS]: Unable to generate a Sculpty physics proxy. Sculpty texture decode failed!");
m_log.Error("[PHYSICS]: Unable to generate a Sculpty physics proxy. Sculpty texture decode failed: " + ex.Message);
return null;
}
}