Revert "File.js"
[app.Builder.js] / dbgenerate.js
index c38e874..0ea16fd 100644 (file)
@@ -234,7 +234,7 @@ if (File.isDirectory(cfg.INI)) {
 }
 //print(JSON.stringify(ini, null,4));
  //console.dump(ini);
-
+print("DONE INI");
 
  //Seed.quit();
 
@@ -279,7 +279,11 @@ switch(cfg.DBTYPE) {
                 
         break;
     default:
-        throw "Invalid data base type " + cfg.DBTYPE + " should be MySQL or PostgreSQL";
+        throw {
+             name: "ArgumentError", 
+             message: "Invalid data base type " + cfg.DBTYPE + " should be MySQL or PostgreSQL"
+         };
+            
 /*
            "Field": "province",
         "Type": "varchar(255)",