File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,8 @@ CMake.prototype._getConfiguredProjectName = function() {
203
203
if ( path . sep === "\\" ) {
204
204
workDir = workDir . replace ( / \\ / g, "/" ) ;
205
205
}
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" } )
207
208
. then ( function ( lines ) {
208
209
var projectName ;
209
210
lines . split ( environment . EOL )
@@ -215,12 +216,12 @@ CMake.prototype._getConfiguredProjectName = function() {
215
216
}
216
217
} ) ;
217
218
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 + "' .") ;
219
220
}
220
221
return projectName ;
221
222
} ,
222
223
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.") ;
224
225
} ) ;
225
226
} ;
226
227
Original file line number Diff line number Diff line change 15
15
"which" : " ^1.0.9" ,
16
16
"yargs" : " ^3.6.0"
17
17
}
18
- }
18
+ }
You can’t perform that action at this time.
0 commit comments