* Terminate OpenSim startup if we cannot listen to the designated HTTP port

* This makes the problem much more obvious to the user, and OpenSim isn't that useful without inbound http anyway
0.6.5-rc1
Justin Clarke Casey 2009-04-09 19:46:14 +00:00
parent 7f8552fe63
commit 2176a80bcf
1 changed files with 6 additions and 2 deletions

View File

@ -1424,8 +1424,12 @@ namespace OpenSim.Framework.Servers
} }
catch (Exception e) catch (Exception e)
{ {
m_log.Warn("[HTTPD]: Error - " + e.Message); m_log.Error("[HTTPD]: Error - " + e.Message);
m_log.Warn("Tip: Do you have permission to listen on port " + m_port + "," + m_sslport + "?"); m_log.Error("[HTTPD]: Tip: Do you have permission to listen on port " + m_port + ", " + m_sslport + "?");
// We want this exception to halt the entire server since in current configurations we aren't too
// useful without inbound HTTP.
throw e;
} }
} }