diff options
author | randomdan <randomdan@localhost> | 2013-01-27 00:02:16 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2013-01-27 00:02:16 +0000 |
commit | abdea12befe458e5fd03a5ada0cc1c1f5ccbf761 (patch) | |
tree | 9f6d647508e586c05c542c0d3683897059be459a | |
parent | Allow reading URL list from a file for bulk testing (diff) | |
download | project2-abdea12befe458e5fd03a5ada0cc1c1f5ccbf761.tar.bz2 project2-abdea12befe458e5fd03a5ada0cc1c1f5ccbf761.tar.xz project2-abdea12befe458e5fd03a5ada0cc1c1f5ccbf761.zip |
Fix issues with PQ connection errors not being handled correctly
-rw-r--r-- | project2/cgi/cgiCommon.cpp | 6 |
1 files 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)); |