Skip to content

Commit

Permalink
fix: improve error message if an incorrect path was passed
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Feb 16, 2020
1 parent 72bf552 commit 93aea73
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Adio.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ class Adio {
});
});

if (packages.length === 0) {
throw new Error(`No packages detected.
Did you specify the correct path via the --package or --packages params?
For example: adio --package=src/my-package
Hint: you can also specify these params via the .adiorc.js config or package.json.`);
}

const checks = [];
for (let i = 0; i < packages.length; i++) {
checks.push(this.testPackage(packages[i]));
Expand Down

0 comments on commit 93aea73

Please sign in to comment.