From 0e77c7fd324b99006b01c248a0e3295d2c07cec9 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 18 Mar 2016 01:05:31 +0300 Subject: Make web server to terminate if module fail to initialize --- brep/module.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'brep/module.cxx') diff --git a/brep/module.cxx b/brep/module.cxx index 40acad9..68969eb 100644 --- a/brep/module.cxx +++ b/brep/module.cxx @@ -30,11 +30,9 @@ namespace brep try { - if (!initialized_) - { - MODULE_DIAG; - fail << "not initialized, presumably due to misconfiguration"; - } + // Web server should terminate if initialization failed. + // + assert (initialized_); return handle (rq, rs); } -- cgit v1.1