feat(update): show stderr for failed steps

This commit is contained in:
Benjamin Jesuiter
2026-01-11 01:26:14 +01:00
committed by Peter Steinberger
parent 3f27b23d5a
commit 6cb55eaaa7
2 changed files with 13 additions and 0 deletions

View File

@@ -64,6 +64,15 @@ function createUpdateProgress(enabled: boolean): ProgressController {
currentSpinner.stop(`${icon} ${label} ${duration}`);
currentSpinner = null;
if (step.exitCode !== 0 && step.stderrTail) {
const lines = step.stderrTail.split("\n").slice(-10);
for (const line of lines) {
if (line.trim()) {
defaultRuntime.log(` ${theme.error(line)}`);
}
}
}
},
};