diff --git a/craft_parts/errors.py b/craft_parts/errors.py index b31196fdf..65e84bce7 100644 --- a/craft_parts/errors.py +++ b/craft_parts/errors.py @@ -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 diff --git a/tests/integration/executor/test_errors.py b/tests/integration/executor/test_errors.py index bdd46fd7f..7f69e2235 100644 --- a/tests/integration/executor/test_errors.py +++ b/tests/integration/executor/test_errors.py @@ -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