add cwd to error message
This commit is contained in:
parent
75bbb5cb64
commit
429bab53c2
@ -133,7 +133,7 @@ if (args.file) {
|
||||
} else {
|
||||
packageFile = require("find-up").sync("package.json");
|
||||
if (!packageFile) {
|
||||
finish(new Error(`Unable to find package.json in this or any parent directories`));
|
||||
finish(new Error(`Unable to find package.json in ${process.cwd()} or any of its parent directories`));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user