]> git.mxchange.org Git - hub.git/commitdiff
Moved log message before assert
authorRoland Häder <roland@mxchange.org>
Tue, 7 Aug 2012 15:56:54 +0000 (15:56 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 7 Aug 2012 15:56:54 +0000 (15:56 +0000)
application/hub/main/package/assembler/class_PackageAssembler.php

index 2aed4c154ba000cc895913ec15fbdcd53b22c9cc..f69ca26f9422732fe250dd7d82d9040c909d6f53 100644 (file)
@@ -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),