Skip to content

Commit

Permalink
fix: remove captured message on error (#937)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
  • Loading branch information
sergiusens authored Dec 13, 2024
1 parent 3ff8499 commit 0d9c0a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions craft_parts/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,6 @@ def details(self) -> str | None:
return None

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

stderr_lines = stderr.split("\n")
# Find the final command captured in the logs
last_command = None
Expand Down
1 change: 0 additions & 1 deletion tests/integration/executor/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def test_plugin_build_errors(new_dir, partitions):
"""\
Failed to run the build script for part 'foo'.
Captured standard error:
:: + go install -p 1 ./...
:: # example.com/hello
:: ./hello.go:9:9: undefined: fmt.Printfs
Expand Down

0 comments on commit 0d9c0a2

Please sign in to comment.