Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(logging[builder]): add script path to before_script error extra
why: The bare error message loses the script path, making it harder to
diagnose which before_script failed in structured log systems.
what:
- Add tmux_config_path extra with the before_script path to error log
  • Loading branch information
tony committed Mar 8, 2026
commit 689b5bceebc19911621ce04038610d754d9b83c9
9 changes: 8 additions & 1 deletion src/tmuxp/workspace/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,14 @@ def build(self, session: Session | None = None, append: bool = False) -> None:
)
run_before_script(self.session_config["before_script"], cwd=cwd)
except Exception:
_log.error("before script failed")
_log.error(
"before script failed",
extra={
"tmux_config_path": str(
self.session_config["before_script"],
),
},
)
self.session.kill()
raise

Expand Down