diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 43a9d35216..282963c571 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -1107,32 +1107,21 @@ namespace OpenSim
///
protected void LoadOar(string module, string[] cmdparams)
{
- if (cmdparams.Length > 2)
- {
- try
+ try
+ {
+ if (cmdparams.Length > 2)
{
- m_sceneManager.LoadArchiveToCurrentScene(cmdparams[2]);
+ m_sceneManager.LoadArchiveToCurrentScene(cmdparams[2]);
}
- catch (FileNotFoundException)
+ else
{
- m_console.Error("Specified oar file not found.");
- }
- catch (DirectoryNotFoundException)
- {
- m_console.Error("Specified directory not found.");
+ m_sceneManager.LoadArchiveToCurrentScene(DEFAULT_OAR_BACKUP_FILENAME);
}
}
- else
+ catch (Exception e)
{
- try
- {
- m_sceneManager.LoadArchiveToCurrentScene(DEFAULT_OAR_BACKUP_FILENAME);
- }
- catch (FileNotFoundException)
- {
- m_console.Error("Default oar file not found.");
- }
- }
+ m_console.Error(e.Message);
+ }
}
///
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs
index e3d2aee24d..a3ec419634 100644
--- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs
+++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs
@@ -449,7 +449,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver
}
catch (Exception e)
{
- throw new Exception(String.Format("Unable to create file input stream for {0}: {1}", path, e));
+ throw new Exception(String.Format("Unable to create file input stream for {0}: {1}", path, e.Message));
}
}