aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite
diff options
context:
space:
mode:
authorTeravus Ovares2009-07-10 21:47:54 +0000
committerTeravus Ovares2009-07-10 21:47:54 +0000
commitd54aac41d296f4ba74ef5f9a33bfd25a86cc198b (patch)
tree544c7da4f1254349c5cb330bb0b60458312fd668 /OpenSim/Data/SQLite
parentSome module reshuffling, no user functionality yet (diff)
downloadopensim-SC_OLD-d54aac41d296f4ba74ef5f9a33bfd25a86cc198b.zip
opensim-SC_OLD-d54aac41d296f4ba74ef5f9a33bfd25a86cc198b.tar.gz
opensim-SC_OLD-d54aac41d296f4ba74ef5f9a33bfd25a86cc198b.tar.bz2
opensim-SC_OLD-d54aac41d296f4ba74ef5f9a33bfd25a86cc198b.tar.xz
* Added a user friendly message to the sqlite regionsettings saver giving them troubleshooting options and telling them to restart the simulator. This situation, hopefully is temporary and generates an exception when sqlite users first start OpenSimulator because of an unexpected condition in the database layer. Restart and all is well.
* Added a user friendly message to the 'No IInventoryService available' condition with troubleshooting options.
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r--OpenSim/Data/SQLite/SQLiteRegionData.cs18
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs
index b3687de..16a05af 100644
--- a/OpenSim/Data/SQLite/SQLiteRegionData.cs
+++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs
@@ -719,7 +719,23 @@ namespace OpenSim.Data.SQLite
719 terrainDa.Update(ds, "terrain"); 719 terrainDa.Update(ds, "terrain");
720 landDa.Update(ds, "land"); 720 landDa.Update(ds, "land");
721 landAccessListDa.Update(ds, "landaccesslist"); 721 landAccessListDa.Update(ds, "landaccesslist");
722 regionSettingsDa.Update(ds, "regionsettings"); 722 try
723 {
724 regionSettingsDa.Update(ds, "regionsettings");
725 }
726 catch (SqliteExecutionException SqlEx)
727 {
728 if (SqlEx.Message.Contains("logic error"))
729 {
730 throw new Exception(
731 "There was a SQL error or connection string configuration error when saving the region settings. This could be a bug, it could also happen if ConnectionString is defined in the [DatabaseService] section of StandaloneCommon.ini in the config_include folder. This could also happen if the config_include folder doesn't exist or if the OpenSim.ini [Architecture] section isn't set. If this is your first time running OpenSimulator, please restart the simulator and bug a developer to fix this!",
732 SqlEx);
733 }
734 else
735 {
736 throw SqlEx;
737 }
738 }
723 ds.AcceptChanges(); 739 ds.AcceptChanges();
724 } 740 }
725 } 741 }