Skip to content

Commit fa36f43

Browse files
committed
minor log update
1 parent 11952ed commit fa36f43

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/cMake.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ CMake.prototype._getConfiguredProjectName = function() {
203203
if (path.sep === "\\") {
204204
workDir = workDir.replace(/\\/g, "/");
205205
}
206-
return fs.readFileAsync(path.join(self.workDir, "CMakeCache.txt"), {encoding: "utf8"})
206+
var listFile = path.join(self.workDir, "CMakeCache.txt");
207+
return fs.readFileAsync(listFile, {encoding: "utf8"})
207208
.then(function(lines) {
208209
var projectName;
209210
lines.split(environment.EOL)
@@ -215,12 +216,12 @@ CMake.prototype._getConfiguredProjectName = function() {
215216
}
216217
});
217218
if (!projectName) {
218-
throw new Error("Project is not properly configured, project name hasn't been found in CMakeCache.txt.");
219+
throw new Error("Project is not properly configured, project name hasn't been found in '" + listFile + "'.");
219220
}
220221
return projectName;
221222
},
222223
function(e) {
223-
throw new Error("Project is not configured, CMakeCache.txt doesn't exists.");
224+
throw new Error("Project is not configured, '" + listFile + "' doesn't exists.");
224225
});
225226
};
226227

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"which": "^1.0.9",
1616
"yargs": "^3.6.0"
1717
}
18-
}
18+
}

0 commit comments

Comments
 (0)