Skip to content

Commit

Permalink
update messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 committed Mar 14, 2024
1 parent a1d5a47 commit cbf0a24
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/just-task/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ export async function readConfig(): Promise<{ [key: string]: TaskFunction } | vo
const configFile = await resolveConfigFile(args);

if (!configFile) {
logger.error(
`Config file not found! Please create a file called "just.config.js" ` +
`in the root of the package next to "package.json".`,
);
logger.error('Config file not found. Please create a file "just.config.js" at the package root.');
process.exit(1);
}

Expand All @@ -65,12 +62,12 @@ export async function readConfig(): Promise<{ [key: string]: TaskFunction } | vo
logger.error(`Invalid configuration file: ${configFile}`);
if (importError) {
logger.error(
`Initially got this error trying to import() the file: ${
`Initially got this error trying to import() the file:\n${
(importError as Error)?.stack || (importError as Error)?.message || importError
}`,
);
logger.error(
`Then tried to require() the file and got this error: ${(e as Error).stack || (e as Error).message || e}`,
`Then tried to require() the file and got this error:\n${(e as Error).stack || (e as Error).message || e}`,
);
} else {
logger.error((e as Error).stack || (e as Error).message || e);
Expand Down

0 comments on commit cbf0a24

Please sign in to comment.