Skip to content

Commit 2fe9a71

Browse files
authored
Improve package.json not found error 
1 parent 84abd11 commit 2fe9a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli/lib/util/getPkg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function getPackageJson (projectPath) {
1111
try {
1212
packageJson = fs.readFileSync(packagePath, 'utf-8')
1313
} catch (err) {
14-
throw new Error(`${packagePath} not exist`)
14+
throw new Error(`The package.json file at '${packagePath}' does not exist`)
1515
}
1616

1717
try {

0 commit comments

Comments
 (0)