Skip to content

Commit

Permalink
(fix) Fix Webpack compilation error logging on build (#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayasanka-sack authored Dec 2, 2023
1 parent 9407c1c commit 37e6744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tooling/openmrs/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export async function runBuild(args: BuildArgs) {
return await new Promise<void>((resolve, reject) => {
compiler.run((err, stats) => {
if (err || stats?.hasErrors()) {
reject(err ?? stats?.compilation.errors);
reject(err ?? new Error(stats?.compilation.errors.toString()));
} else {
stats &&
console.log(
Expand Down

0 comments on commit 37e6744

Please sign in to comment.