update project already exists error message (#11596)

This commit is contained in:
Kim Santiago
2020-07-31 14:50:31 -07:00
committed by GitHub
parent c52155b621
commit 30845cbd6d

View File

@@ -137,7 +137,7 @@ export class ProjectsController {
catch { } // file doesn't already exist
if (fileExists) {
throw new Error(constants.projectAlreadyExists(newProjFileName, folderUri.fsPath));
throw new Error(constants.projectAlreadyExists(newProjFileName, path.parse(newProjFilePath).dir));
}
await fs.mkdir(path.dirname(newProjFilePath), { recursive: true });