Skip to content

Commit

Permalink
polish error message
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Dec 5, 2020
1 parent 12afdd8 commit fcd9531
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions snowpack/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,9 @@ export async function command(commandOptions: CommandOptions) {

const existedFileLoc = finalDestLocMap.get(finalDestLoc);
if (existedFileLoc) {
logger.error(`Error: These two files are built to the same path: ${finalDestLoc}`);
logger.error(existedFileLoc);
logger.error(fileLoc);
logger.error(`Error: Two files overlap and build to the same destination: ${finalDestLoc}`);
logger.error(` File 1: ${existedFileLoc}`);
logger.error(` File 2: ${fileLoc}`);
process.exit(1);
}

Expand Down

1 comment on commit fcd9531

@vercel
Copy link

@vercel vercel bot commented on fcd9531 Dec 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.