aboutsummaryrefslogtreecommitdiff
path: root/brep/module.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'brep/module.cxx')
-rw-r--r--brep/module.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/brep/module.cxx b/brep/module.cxx
index d3ffcb4..9e7eda3 100644
--- a/brep/module.cxx
+++ b/brep/module.cxx
@@ -33,12 +33,16 @@ namespace brep
bool module::
handle (request& rq, response& rs, log& l)
{
- assert (loaded_);
-
log_ = &l;
try
{
+ if (!loaded_)
+ {
+ MODULE_DIAG;
+ fail << "not initialized, presumably due to misconfiguration";
+ }
+
return handle (rq, rs);
}
catch (const server_error& e)