Browse Source

added meaningful error when creating directory.

Nicolas Cannasse 19 years ago
parent
commit
0368ddcfae
1 changed files with 5 additions and 1 deletions
  1. 5 1
      std/tools/haxelib/Main.hx

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

@@ -393,7 +393,11 @@ class Main {
 				throw ("A file is preventing "+dir+" to be created");
 			return false;
 		}
-		neko.FileSystem.createDirectory(dir);
+		try {
+			neko.FileSystem.createDirectory(dir);
+		} catch( e : Dynamic ) {
+			throw "You don't have enough user rights to create the directory "+dir;
+		}
 		return true;
 	}