Skip to content

Commit 245dee5

Browse files
authored
lib: log as yes/no whether build dir was created (#2370)
This bit of logging apparently expected to be given a boolean, but was receiving either a path or undefined based on the result of fs.mkdir. Now it prints either "Yes" or "No", rather than printing either a path or "undefined", respectively.
1 parent fca4795 commit 245dee5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/configure.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ function configure (gyp, argv, callback) {
7676
if (err) {
7777
return callback(err)
7878
}
79-
log.verbose('build dir', '"build" dir needed to be created?', isNew)
79+
log.verbose(
80+
'build dir', '"build" dir needed to be created?', isNew ? 'Yes' : 'No'
81+
)
8082
if (win) {
8183
findVisualStudio(release.semver, gyp.opts.msvs_version,
8284
createConfigFile)

0 commit comments

Comments
 (0)