summaryrefslogtreecommitdiffstats
path: root/src/WebAdmin.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-31 15:03:23 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-31 15:03:23 +0200
commite67bb7f431e275b5313ff412266905dc1499294a (patch)
tree58bf667b91b0120efaae8870a4f52313ce85ce78 /src/WebAdmin.cpp
parentWebAdmin: Added favicon to the login template. (diff)
downloadcuberite-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
Diffstat (limited to '')
-rw-r--r--src/WebAdmin.cpp4
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())