aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoridb2009-04-04 22:26:38 +0000
committeridb2009-04-04 22:26:38 +0000
commit168752b81b5674716d715c37ebc95e06a069faf9 (patch)
tree286a7a9bc95514a1377d94fa6af3879058de8c0d
parentThanks jonc for a new and better cloud image (for classic clouds). (diff)
downloadopensim-SC_OLD-168752b81b5674716d715c37ebc95e06a069faf9.zip
opensim-SC_OLD-168752b81b5674716d715c37ebc95e06a069faf9.tar.gz
opensim-SC_OLD-168752b81b5674716d715c37ebc95e06a069faf9.tar.bz2
opensim-SC_OLD-168752b81b5674716d715c37ebc95e06a069faf9.tar.xz
Give a meaningful message if terrain save fails because of a file IO error.
Fixes Mantis #3348
-rw-r--r--OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs5
1 files changed, 5 insertions, 0 deletions
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
234 m_log.Error("Unable to save to " + filename + ", saving of this file format has not been implemented."); 234 m_log.Error("Unable to save to " + filename + ", saving of this file format has not been implemented.");
235 throw new TerrainException(String.Format("Unable to save heightmap: saving of this file format not implemented")); 235 throw new TerrainException(String.Format("Unable to save heightmap: saving of this file format not implemented"));
236 } 236 }
237 catch (IOException ioe)
238 {
239 m_log.Error(String.Format("[TERRAIN]: Unable to save to {0}, {1}", filename, ioe.Message));
240 throw new TerrainException(String.Format("Unable to save heightmap: {0}", ioe.Message));
241 }
237 } 242 }
238 243
239 /// <summary> 244 /// <summary>