Skip to content
This repository was archived by the owner on Sep 11, 2026. It is now read-only.

Commit 77d5146

Browse files
committed
improve log message for errors in plans
1 parent 4eed04f commit 77d5146

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

  • src/infra_visualiser_action

src/infra_visualiser_action/cli

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,19 @@ def main(directory: str, recipe_nickname: str, host: str, gcp_credentials_json:
7171
click.echo("❌ No successful tofu plan. See logs for details:", err=True)
7272
for a in attempts:
7373
click.echo(
74-
f" - {a.env_label}: success={a.success}, log={a.log_path}",
74+
f"""
75+
- {a.env_label}: success={a.success}, log={a.log_path}
76+
📄 Log output:
77+
78+
79+
{a.log_path.read_text()}
80+
81+
82+
83+
📄 end of log output
84+
""",
7585
err=True,
7686
)
77-
click.echo(" 📄 Log output:\n\n\n")
78-
click.echo(a.log_path.read_text(), err=True)
79-
click.echo("\n\n\n 📄 end of Log output")
8087

8188
sys.exit(1)
8289

0 commit comments

Comments
 (0)