Skip to content

Commit

Permalink
fix(packager): clarify entry point error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Jan 9, 2017
1 parent b7f7b81 commit 969ab1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ export default async (providedOptions = {}) => {
const packageJSON = await readPackageJSON(dir);

if (path.dirname(require.resolve(path.resolve(dir, packageJSON.main))) === dir) {
console.error(`${packageJSON.main}`.red);
console.error(`Entry point: ${packageJSON.main}`.red);
// eslint-disable-next-line no-throw-literal
throw 'The entrypoint to your application ("packageJSON.name") must be in a subfolder not in the top level directory';
throw 'The entry point to your application ("packageJSON.name") must be in a subfolder not in the top level directory';
}

const forgeConfig = await getForgeConfig(dir);
Expand Down

0 comments on commit 969ab1e

Please sign in to comment.