Skip to content

Commit 8fd58fa

Browse files
authored
Add stdout to error when build fails
1 parent f39ca49 commit 8fd58fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_builds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def validate_mkdocs_file(temp_path: str, mkdocs_yml_file: str):
301301
)
302302
setup_commit_history(testproject_path)
303303
result = build_docs_setup(testproject_path)
304-
assert result.exit_code == 0, "'mkdocs build' command failed"
304+
assert result.exit_code == 0, f"'mkdocs build' command failed with output:\n{result.stdout}"
305305

306306
# validate build with locale retrieved from mkdocs config file
307307
validate_build(

0 commit comments

Comments
 (0)