From 29671fc103b0621c57ee87d7479fc69c7a953b32 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 18 May 2009 18:22:15 +0000 Subject: * Resolve http://opensimulator.org/mantis/view.php?id=3191 * Catch directory exception on load oar as well as file exception --- OpenSim/Region/Application/OpenSim.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Application/OpenSim.cs') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 2115b75..43a9d35 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -1115,7 +1115,11 @@ namespace OpenSim } catch (FileNotFoundException) { - m_console.Error("Specified oar not found. Usage: load oar "); + 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 "); - } + m_console.Error("Default oar file not found."); + } } } -- cgit v1.1