Skip to content

Commit

Permalink
Merge pull request #339 from payloadcms/fix/build-failure-code
Browse files Browse the repository at this point in the history
fix: use proper error code on webpack build failure
  • Loading branch information
jmikrut authored Oct 12, 2021
2 parents b257e01 + 2eb8154 commit 5a63f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const build = (): void => {
});
} catch (err) {
console.error(err);
console.error(`Error: can't find the configuration file located at ${configPath}.`);
throw new Error(`Error: can't find the configuration file located at ${configPath}.`);
}
};

Expand Down

0 comments on commit 5a63f11

Please sign in to comment.