JsCompile.php
[Pman.Core] / JsCompile.php
index 6cd7b3d..3ca3eb1 100644 (file)
@@ -249,7 +249,7 @@ class Pman_Core_JsCompile  extends Pman
         }
         sort($ofiles);
         $eoutput = escapeshellarg($output);
-        $cmd = "$seed {$o['jspacker']}/pack.js  -o $eoutput " . implode($ofiles, ' ');
+        $cmd = "$seed {$o['jspacker']}/pack.js  -o $eoutput " . implode($ofiles, ' ') . ' 2>&1';
         //echo "<PRE>$cmd\n";
         //echo `$cmd`;
         $res = `$cmd`;
@@ -260,7 +260,13 @@ class Pman_Core_JsCompile  extends Pman
             
             return true;
         }
-        echo '<!-- packed file did not exist '. htmlspecialchars($res) . "\n-->";
+        echo "<!-- packed file did not exist
+          
+            " . htmlspecialchars($cmd) . "
+            
+            " . htmlspecialchars($res) . "
+            
+            -->";
         return false;
         
     }