make unimplemented transactions fail
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Mon, 4 Jan 2010 16:53:07 +0000 (16:53 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Mon, 4 Jan 2010 16:53:07 +0000 (16:53 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@399 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

woc/phpout.cpp

index c062959..f01b5a9 100644 (file)
@@ -836,6 +836,7 @@ void WocPHPServerOut::newTransaction(const WocTransaction&trn)
                code+="\ttry{"+trn.callFunction("php")+"}catch(Exception $e){$this->handleException($e);}\n";
        }else{
                code+="\t/*normally here would be the PHP call, but it is missing from the config*/\n";
+               code+="\t$this->abortNotImplemented();\nreturn;\n";
                qDebug("Warning: transaction %s does not have a PHP call!",trn.name().toAscii().data());
        }