aboutsummaryrefslogtreecommitdiff
path: root/brep
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-17 19:20:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-18 05:50:31 +0200
commit64e889f0ca84121a4e92840f9283cf9cf36279e6 (patch)
tree747ace5fbecd7cf854ce9bdbf02b4cabb25454e1 /brep
parent13a2e1a89d575332ae4155b22021306891c010de (diff)
Bugfix: brep::module::handle asserts the module is loaded
Diffstat (limited to 'brep')
-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)