mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* minor: another attempt at http://opensimulator.org/mantis/view.php?id=3191
* didn't realize that we were getting back plain old exceptions
This commit is contained in:
@@ -1107,32 +1107,21 @@ namespace OpenSim
|
||||
/// <param name="cmdparams"></param>
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user