For TerrainModule.SaveToFile(), don't bother throwing the exception onwards after printing out the error, since this method is invoked by users.
Still throwing the exception on the stream method since this invoked programaticallyiar_mods
parent
352672eaf2
commit
9c928e9dc6
|
@ -273,7 +273,6 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||||
catch (IOException ioe)
|
catch (IOException ioe)
|
||||||
{
|
{
|
||||||
m_log.Error(String.Format("[TERRAIN]: Unable to save to {0}, {1}", filename, ioe.Message));
|
m_log.Error(String.Format("[TERRAIN]: Unable to save to {0}, {1}", filename, ioe.Message));
|
||||||
throw new TerrainException(String.Format("Unable to save heightmap: {0}", ioe.Message));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_log.ErrorFormat(
|
m_log.ErrorFormat(
|
||||||
|
|
Loading…
Reference in New Issue