Give a meaningful message if terrain save fails because of a file IO error.

Fixes Mantis #3348
0.6.5-rc1
idb 2009-04-04 22:26:38 +00:00
parent 13128c4e9d
commit 168752b81b
1 changed files with 5 additions and 0 deletions

View File

@ -234,6 +234,11 @@ namespace OpenSim.Region.CoreModules.World.Terrain
m_log.Error("Unable to save to " + filename + ", saving of this file format has not been implemented.");
throw new TerrainException(String.Format("Unable to save heightmap: saving of this file format not implemented"));
}
catch (IOException ioe)
{
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));
}
}
/// <summary>