Change in throwing exception in getVitisPath()

parent 433ed2f3
......@@ -65,12 +65,8 @@ string getVitisPath() {
try {
mkdirRecurse(vitisPath);
} catch(std.file.FileException e) {
if (e.msg.canFind("Permission denied")) {
auto err = vitisPath ~ ": this path is not available."._s;
throw new FileWarning(err);
} else {
throw new FileWarning(e.msg);
}
auto err = vitisPath ~ ": this path is not available."._s;
throw new FileWarning(err);
}
}
return vitisPath;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment