Skip to content

Commit 6b075cf

Browse files
committed
Raise stderr dump limit to 50 lines in DGoss error
The default dump_stderr cap of 10 lines is now user-visible since BakeryDGossError.__str__ prints it. Docker errors are rarely long, but auth chain failures and daemon traces can exceed 10 lines and would be silently truncated.
1 parent c56b4d5 commit 6b075cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • posit-bakery/posit_bakery/plugins/builtin/dgoss

posit-bakery/posit_bakery/plugins/builtin/dgoss/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __str__(self) -> str:
3333
stdout_dump = self.dump_stdout()
3434
if stdout_dump:
3535
s += f" - Command output:\n{textwrap.indent(stdout_dump, ' ')}\n"
36-
stderr_dump = self.dump_stderr()
36+
stderr_dump = self.dump_stderr(lines=50)
3737
if stderr_dump:
3838
s += f" - Error output:\n{textwrap.indent(stderr_dump, ' ')}\n"
3939
s += f" - Command executed: {' '.join(self.cmd)}\n"

0 commit comments

Comments
 (0)