From 168752b81b5674716d715c37ebc95e06a069faf9 Mon Sep 17 00:00:00 2001 From: idb Date: Sat, 4 Apr 2009 22:26:38 +0000 Subject: Give a meaningful message if terrain save fails because of a file IO error. Fixes Mantis #3348 --- OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs index 239ff55..7793aa5 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs @@ -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)); + } } /// -- cgit v1.1