JSDOC/Options.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 29 Jun 2010 09:52:07 +0000 (17:52 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 29 Jun 2010 09:52:07 +0000 (17:52 +0800)
JSDOC/Options.js

index a6724dd..2836831 100644 (file)
@@ -70,6 +70,13 @@ Options = {
                 message: "No directory specified" 
             };
         }
+        f (!this.baseDir) {
+            throw {
+                name: "ArgumentError", 
+                message: "No cacheDirectory specified" 
+            };
+        }
+        
         // should cacheDirectory be a subdirectory of target??
         // if not set..
         if (!this.cacheDirectory) {