From 4448da24c4d5d7e251c3dae995efe3d7ef7a05cf Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Tue, 14 Aug 2018 23:09:50 +0300 Subject: [PATCH] fix: change warning message of package refetch --- src/packageRequester.ts | 2 +- test/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/packageRequester.ts b/src/packageRequester.ts index 6670e96bff..dc59dcf725 100644 --- a/src/packageRequester.ts +++ b/src/packageRequester.ts @@ -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 diff --git a/test/index.ts b/test/index.ts index 84a599a7dc..c7c262ec7a 100644 --- a/test/index.ts +++ b/test/index.ts @@ -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()