diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-08-31 15:03:23 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-08-31 15:03:23 +0200 |
commit | e67bb7f431e275b5313ff412266905dc1499294a (patch) | |
tree | 58bf667b91b0120efaae8870a4f52313ce85ce78 | |
parent | WebAdmin: Added favicon to the login template. (diff) | |
download | cuberite-e67bb7f431e275b5313ff412266905dc1499294a.tar cuberite-e67bb7f431e275b5313ff412266905dc1499294a.tar.gz cuberite-e67bb7f431e275b5313ff412266905dc1499294a.tar.bz2 cuberite-e67bb7f431e275b5313ff412266905dc1499294a.tar.lz cuberite-e67bb7f431e275b5313ff412266905dc1499294a.tar.xz cuberite-e67bb7f431e275b5313ff412266905dc1499294a.tar.zst cuberite-e67bb7f431e275b5313ff412266905dc1499294a.zip |
-rw-r--r-- | src/WebAdmin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/WebAdmin.cpp b/src/WebAdmin.cpp index 0646c9d1c..35a6d401c 100644 --- a/src/WebAdmin.cpp +++ b/src/WebAdmin.cpp @@ -131,8 +131,10 @@ bool cWebAdmin::Start(void) m_TemplateScript.RegisterAPILibs(); if (!m_TemplateScript.LoadFile(FILE_IO_PREFIX "webadmin/template.lua")) { - LOGWARN("Could not load WebAdmin template \"%s\", using default template.", FILE_IO_PREFIX "webadmin/template.lua"); + LOGERROR("Could not load WebAdmin template \"%s\". WebAdmin disabled!", FILE_IO_PREFIX "webadmin/template.lua"); m_TemplateScript.Close(); + m_HTTPServer.Stop(); + return false; } if (!LoadLoginTemplate()) |