Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions dspublisher/dspublisher-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ async function checkPreConditions() {
resolve();
} else {
reject(
new Error('Maven is not installed. Plase make sure it is installed and in your PATH.')
new Error('Maven is not installed. Please make sure it is installed and in your PATH.')
);
}
});

ps.on('error', () => {
new Error('Maven is not installed. Plase make sure it is installed and in your PATH.');
new Error('Maven is not installed. Please make sure it is installed and in your PATH.');
});
});

Expand Down Expand Up @@ -407,6 +407,14 @@ async function execute(shellCommand, phases, ignoredLogSignals = []) {
phase.done = true;
}
});

ps.stderr.on('data', (data) => {
if (ignoredLogSignals.every((signal) => !data.toString().includes(signal))) {
const redColor = '\x1b[31m';
const defaultColor = '\x1b[0m';
logProgress(progressState, `${redColor}${data.toString()}${defaultColor}`);
}
});
});
}

Expand Down