From: Roland Häder Date: Tue, 7 Aug 2012 15:56:54 +0000 (+0000) Subject: Moved log message before assert X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2b7545cbcbcb03d0e8a05b70846cdc83115d0b85;p=hub.git Moved log message before assert --- diff --git a/application/hub/main/package/assembler/class_PackageAssembler.php b/application/hub/main/package/assembler/class_PackageAssembler.php index 2aed4c154..f69ca26f9 100644 --- a/application/hub/main/package/assembler/class_PackageAssembler.php +++ b/application/hub/main/package/assembler/class_PackageAssembler.php @@ -189,12 +189,12 @@ class PackageAssembler extends BaseHubSystem implements Assembler, Registerable * @return void */ public function handlePendingData () { - // Assert on condition - assert(!$this->isPendingDataEmpty()); - // Debug output /* NOISY-DEBUG: */ $this->debugOutput('PACKAGE-ASSEMBLER: Going to decode ' . strlen($this->pendingData) . ' Bytes of pending data. pendingData=' . $this->pendingData); + // Assert on condition + assert(!$this->isPendingDataEmpty()); + // Init fake array $packageContent = array( BaseRawDataHandler::PACKAGE_RAW_DATA => $this->getInputStreamInstance()->streamData($this->pendingData),