From 08cfb692da4102d9d90870e0f03c70218bc3bb8f Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Mon, 15 Jul 2019 18:39:33 +0200 Subject: [PATCH] Clarify an error message on finding a package.json --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6ce647b..ac90038 100644 --- a/index.js +++ b/index.js @@ -62,7 +62,7 @@ module.exports = async function (opts) { entries = await resolveGlobbedPath(pkgPath) if (!entries[0]) { - throw new Error('Failed to find package.json, could not find any matching files') + throw new Error('Failed to find package.json, no files found') } opts.noDefaultEntries = true