Skip to content

Commit

Permalink
Merge branch 'split-stderr' of gh:canonical/craft-parts into split-st…
Browse files Browse the repository at this point in the history
…derr
  • Loading branch information
bepri committed Nov 26, 2024
2 parents 297d42d + aec8096 commit a6a95b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions craft_parts/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,9 @@ def details(self) -> str | None:
Discards all trace lines that come before the last-executed script line
"""
if self.stderr is None:
return super().details
with contextlib.closing(StringIO()) as details_io:
if self.stderr is None:
return None

stderr = self.stderr.decode("utf-8", errors="replace")
details_io.write("\nCaptured standard error:")
Expand Down

0 comments on commit a6a95b8

Please sign in to comment.