Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit ced38f3

Browse files
billyjanitschzkat
authored andcommitted
fix(log): Fix formatting of invalid wd warning (#12)
1 parent ca5f920 commit ced38f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ function lifecycle (pkg, stage, wd, opts) {
5353

5454
if ((wd.indexOf(opts.dir) !== 0 || _incorrectWorkingDirectory(wd, pkg)) &&
5555
!opts.unsafePerm && pkg.scripts[stage]) {
56-
opts.log.warn('lifecycle', logid(pkg, stage), 'cannot run in wd',
57-
'%s %s (wd=%s)', pkg._id, pkg.scripts[stage], wd
58-
)
56+
opts.log.warn('lifecycle', logid(pkg, stage), 'cannot run in wd', pkg._id, pkg.scripts[stage], `(wd=${wd})`)
5957
return resolve()
6058
}
6159

0 commit comments

Comments
 (0)