From 67520c7d5119442f8208a498d6ae8ae1670a3f4d Mon Sep 17 00:00:00 2001 From: randomdan Date: Sun, 27 Jan 2013 00:02:16 +0000 Subject: Fix issues with PQ connection errors not being handled correctly --- project2/cgi/cgiCommon.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project2/cgi/cgiCommon.cpp b/project2/cgi/cgiCommon.cpp index 60a9abf..ea4694e 100644 --- a/project2/cgi/cgiCommon.cpp +++ b/project2/cgi/cgiCommon.cpp @@ -39,10 +39,10 @@ doExceptionReporting(const E & e, std::ostream & IO) void cgiServe(cgicc::CgiInput * i, CgiEnvironment * env, std::ostream & IO, const CgiEnvInput * e) { - cgicc::Cgicc cgi(i); - env->setCGICC(&cgi, e); - env->init(); try { + cgicc::Cgicc cgi(i); + env->setCGICC(&cgi, e); + env->init(); CgiApplicationEngine app(env, IO); LoaderBase::onAllComponents(boost::bind(&ComponentLoader::onBefore, _1)); -- cgit v1.2.3