Skip to content

Commit

Permalink
error with logPath
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Jan 14, 2025
1 parent 0b1add7 commit 36c61e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/heta-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Promise.all([
main(),
!program.opts().skipUpdates && printVersionMessage()
]).then(([builder]) => {
const { logMode } = program.opts();
const { logMode, logPath } = program.opts();
if (builder.container.hetaErrors().length > 0) {
process.stdout.write('Compilation ERROR! See logs.\n');
logStream?.write('Compilation ERROR! See logs.\n');
Expand All @@ -183,7 +183,7 @@ Promise.all([
process.exit(0);
}
}).catch((error) => {
const { logMode } = program.opts();
const { logMode, logPath } = program.opts();
if (error.name === 'HetaLevelError') {
process.stdout.write('Error: ' + error.message + '\nSTOP!\n');
logStream?.write('Error: ' + error.message + '\nSTOP!\n');
Expand Down

0 comments on commit 36c61e9

Please sign in to comment.