Skip to content

Commit f3d4344

Browse files
committed
Fix 'hx with' when specified version is not installed
1 parent fea4d81 commit f3d4344

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/HaxeManager.hx

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class HaxeManager {
5151
var v = args.shift();
5252
if (v == "rc") v = LixTools.getRc();
5353
final path = Utils.find(v);
54+
if (path == null) throw 'Version $v is not installed';
5455
Utils.runHaxe(path, args);
5556

5657
// Internal commands

0 commit comments

Comments
 (0)