Improve output when 'haxelib path' errors because a dependency haxelib is not found

This commit is contained in:
Joshua Granick
2015-02-16 10:30:00 -08:00
parent dfff204dec
commit 77c3724503

View File

@@ -261,6 +261,14 @@ class PathHelper {
LogHelper.error ("haxelib \"" + haxelib.name + "\" does not have an \"ndll/" + directoryName + "\" directory"); LogHelper.error ("haxelib \"" + haxelib.name + "\" does not have an \"ndll/" + directoryName + "\" directory");
} else if (output.indexOf ("haxelib install ") > -1) {
var start = output.indexOf ("haxelib install ") + 16;
var end = output.lastIndexOf ("'") - 1;
var dependencyName = output.substring (start, end);
LogHelper.error ("Could not find haxelib \"" + dependencyName + "\" (dependency of \"" + haxelib.name + "\"), does it need to be installed?");
} else { } else {
if (haxelib.version != "") { if (haxelib.version != "") {