JsCompile.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 22 Jul 2011 07:39:55 +0000 (15:39 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 22 Jul 2011 07:39:55 +0000 (15:39 +0800)
JsCompile.php

index f201bb5..015dd4f 100644 (file)
@@ -113,13 +113,16 @@ class Pman_Core_JsCompile  extends Pman
         $o = HTML_FlexyFramework::get()->Pman_Core;
         
         if (empty($o['jspacker']) || !file_exists($o['jspacker'].'/pack.js')) {
-            throw new Exception("no jstoolkit path set [Pman_Core][jspacker] to the
-                    introspection documentation directory where pack.js is located.");   
+            echo '<!-- jspacker not set -->';
+            return false;
+            
         }
         require_once 'System.php';
         $seed= System::which('seed');
         if (!$seed) {
-            throw new Exception(" no seed installed");
+            echo '<!-- seed not installed -->';
+            return false;
+            
         }
         $max = 0;
         foreach($files as $i => $f) {