Fix version mismatch, fix null check

This commit is contained in:
Joshua Granick
2017-05-22 09:23:33 -07:00
parent f4f38c0462
commit 43c0deddb7
3 changed files with 14 additions and 2 deletions

View File

@@ -1290,7 +1290,7 @@ class Main {
var dev = try getDev(pdir) catch (_:Dynamic) null;
var vdir = try getVersionDir(version,dev,pdir) catch (_:Dynamic) null;
if( vdir != null && !FileSystem.exists(vdir) )
if( vdir == null || !FileSystem.exists(vdir) )
throw "Library "+prj+" version "+version+" is not installed";
for( p in l )