better assertion info

This commit is contained in:
Eugene Zhuravlev
2010-11-12 19:02:56 +03:00
parent 281b903809
commit db0090b3bf
@@ -2378,7 +2378,9 @@ public class CompileDriver {
final boolean justCreated = file.mkdirs();
vFile = lfs.refreshAndFindFileByIoFile(file);
assert vFile != null: "Virtual file not found for " + file.getPath() + "; mkdirs() exit code is " + justCreated;
if (vFile == null) {
assert false: "Virtual file not found for " + file.getPath() + "; mkdirs() exit code is " + justCreated + "; file exists()? " + file.exists();
}
return vFile;
}