aboutsummaryrefslogtreecommitdiff
path: root/brep/module.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-03-18 01:05:31 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-03-18 01:05:31 +0300
commit0e77c7fd324b99006b01c248a0e3295d2c07cec9 (patch)
tree06ad0555acaadcb72130b0465cc0b49032d27f2e /brep/module.cxx
parent0b6b57f9acaa2ec648bf582ff67851331f8e6eef (diff)
Make web server to terminate if module fail to initialize
Diffstat (limited to 'brep/module.cxx')
-rw-r--r--brep/module.cxx8
1 files changed, 3 insertions, 5 deletions
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);
}