add cwd to error message

This commit is contained in:
silverwind 2019-05-29 22:06:00 +02:00
parent 75bbb5cb64
commit 429bab53c2
Signed by: silverwind
GPG Key ID: 2E62B41C93869443

@ -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`));
}
}