From 64e889f0ca84121a4e92840f9283cf9cf36279e6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 17 Dec 2015 19:20:41 +0200 Subject: Bugfix: brep::module::handle asserts the module is loaded --- brep/module.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'brep') 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) -- cgit v1.1