* Catch directory exception on load oar as well as file exception
This commit is contained in:
Justin Clarke Casey
2009-05-18 18:22:15 +00:00
parent ad7214620f
commit 29671fc103
3 changed files with 15 additions and 12 deletions

View File

@@ -1115,7 +1115,11 @@ namespace OpenSim
}
catch (FileNotFoundException)
{
m_console.Error("Specified oar not found. Usage: load oar <filename>");
m_console.Error("Specified oar file not found.");
}
catch (DirectoryNotFoundException)
{
m_console.Error("Specified directory not found.");
}
}
else
@@ -1126,8 +1130,8 @@ namespace OpenSim
}
catch (FileNotFoundException)
{
m_console.Error("Default oar not found. Usage: load oar <filename>");
}
m_console.Error("Default oar file not found.");
}
}
}