Browse Source

check that repository still exists.

Nicolas Cannasse 19 years ago
parent
commit
60489d9fc6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      std/tools/haxelib/Main.hx

+ 2 - 1
std/tools/haxelib/Main.hx

@@ -416,7 +416,8 @@ class Main {
 			var f = neko.io.File.write(config,true);
 			f.write(rep);
 			f.close();
-		}
+		} else if( !neko.FileSystem.exists(rep) )
+			throw "haxelib Repository "+rep+" does not exists. Please run haxelib setup again";
 		return rep+"/";
 	}