浏览代码

do not swallow failed getHaxelibPath

Simon Krajewski 11 年之前
父节点
当前提交
f83697379f
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      tests/RunTravis.hx

+ 6 - 0
tests/RunTravis.hx

@@ -35,7 +35,13 @@ class RunTravis {
 	static function getHaxelibPath(libName:String) {
 		var proc = new sys.io.Process("haxelib", ["path", libName]);
 		var result = proc.stdout.readLine();
+		var code = proc.exitCode();
 		proc.close();
+		if (code != 0) {
+			Sys.println(result);
+			Sys.exit(code);
+		}
+		trace('Haxelib path for $libName: $result');
 		return result;
 	}