fix: change warning message of package refetch

This commit is contained in:
Zoltan Kochan
2018-08-14 23:09:50 +03:00
parent d1ea0d1b0d
commit 4448da24c4
2 changed files with 3 additions and 3 deletions

View File

@@ -466,7 +466,7 @@ function fetchToStore (
finishing.resolve(undefined)
return
}
storeLogger.warn(`Refetching ${target} to store, as it was modified`)
storeLogger.warn(`Refetching ${target} to store. It was either modified or had no integrity checksums`)
}
// We fetch into targetStage directory first and then fs.rename() it to the

View File

@@ -662,7 +662,7 @@ test('refetch package to store if it has been modified', async (t) => {
t.ok(reporter.calledWithMatch({
level: 'warn',
name: 'pnpm:store',
message: `Refetching ${path.join(storePath, pkgId)} to store, as it was modified`,
message: `Refetching ${path.join(storePath, pkgId)} to store. It was either modified or had no integrity checksums`,
}), 'refetch logged')
t.end()
@@ -726,7 +726,7 @@ test('refetch package to store if it has no integrity checksums and verification
t.ok(reporter.calledWithMatch({
level: 'warn',
name: 'pnpm:store',
message: `Refetching ${path.join(storePath, pkgId)} to store, as it was modified`,
message: `Refetching ${path.join(storePath, pkgId)} to store. It was either modified or had no integrity checksums`,
}), 'refetch logged')
t.end()