diff options
author | Justin Clarke Casey | 2009-05-18 18:44:55 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-05-18 18:44:55 +0000 |
commit | 1cc9d1fd8dbe18ea74d9bcd5a7c3ff0c452499e7 (patch) | |
tree | af9377a55fecdfca60c05958126a916631d87067 /OpenSim/Region/Application | |
parent | * Resolve http://opensimulator.org/mantis/view.php?id=3191 (diff) | |
download | opensim-SC_OLD-1cc9d1fd8dbe18ea74d9bcd5a7c3ff0c452499e7.zip opensim-SC_OLD-1cc9d1fd8dbe18ea74d9bcd5a7c3ff0c452499e7.tar.gz opensim-SC_OLD-1cc9d1fd8dbe18ea74d9bcd5a7c3ff0c452499e7.tar.bz2 opensim-SC_OLD-1cc9d1fd8dbe18ea74d9bcd5a7c3ff0c452499e7.tar.xz |
* minor: another attempt at http://opensimulator.org/mantis/view.php?id=3191
* didn't realize that we were getting back plain old exceptions
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 43a9d35..282963c 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -1107,32 +1107,21 @@ namespace OpenSim | |||
1107 | /// <param name="cmdparams"></param> | 1107 | /// <param name="cmdparams"></param> |
1108 | protected void LoadOar(string module, string[] cmdparams) | 1108 | protected void LoadOar(string module, string[] cmdparams) |
1109 | { | 1109 | { |
1110 | if (cmdparams.Length > 2) | 1110 | try |
1111 | { | 1111 | { |
1112 | try | 1112 | if (cmdparams.Length > 2) |
1113 | { | 1113 | { |
1114 | m_sceneManager.LoadArchiveToCurrentScene(cmdparams[2]); | 1114 | m_sceneManager.LoadArchiveToCurrentScene(cmdparams[2]); |
1115 | } | 1115 | } |
1116 | catch (FileNotFoundException) | 1116 | else |
1117 | { | 1117 | { |
1118 | m_console.Error("Specified oar file not found."); | 1118 | m_sceneManager.LoadArchiveToCurrentScene(DEFAULT_OAR_BACKUP_FILENAME); |
1119 | } | ||
1120 | catch (DirectoryNotFoundException) | ||
1121 | { | ||
1122 | m_console.Error("Specified directory not found."); | ||
1123 | } | 1119 | } |
1124 | } | 1120 | } |
1125 | else | 1121 | catch (Exception e) |
1126 | { | 1122 | { |
1127 | try | 1123 | m_console.Error(e.Message); |
1128 | { | 1124 | } |
1129 | m_sceneManager.LoadArchiveToCurrentScene(DEFAULT_OAR_BACKUP_FILENAME); | ||
1130 | } | ||
1131 | catch (FileNotFoundException) | ||
1132 | { | ||
1133 | m_console.Error("Default oar file not found."); | ||
1134 | } | ||
1135 | } | ||
1136 | } | 1125 | } |
1137 | 1126 | ||
1138 | /// <summary> | 1127 | /// <summary> |