worktree: Add more context to `log_err` calls (#38239)

Release Notes:

- N/A
1c09985fb3Lukas Wirth committed on 9/16/2025, 7:31:28 AM· committed by GitHubparentd986077
2 files changedLine totals unavailable