Skip to content

Show the error of a deployment on its own lines in bref deployments:logs - #62

Merged
mnapoli merged 1 commit into
mainfrom
deployments-logs-error
Sep 28, 2026
Merged

mnapoli merged 1 commit into
mainfrom
deployments-logs-error

Conversation

@mnapoli

@mnapoli mnapoli commented Sep 28, 2026

Copy link
Copy Markdown
Member

bref deployments:logs printed the deployment's error in parentheses at the end of its summary line. A deployment's error can now span several lines (the whole osls error, then a hint for known errors), so that line became hard to read:

Deployment #79: failed (Cannot resolve serverless.yml: Variables resolution errored with:
  - Cannot resolve variable at "provider.environment.API_KEY": Value not found at "env" source)

The summary now stays on one line, and the error follows on its own lines, as bref deploy shows it:

Deployment #79: failed

Cannot resolve serverless.yml: Variables resolution errored with:
  - Cannot resolve variable at "provider.environment.API_KEY": Value not found at "env" source

The error is still printed even though it often repeats the end of the logs: its hint for known errors isn't in the logs, and neither is the error of a bref.php deployment. As before, it goes to stderr, and --json is unchanged.

…logs`

The error was appended to the summary line, in parentheses. A deployment's error can now span
several lines (the whole osls error, then a hint for known errors), which made that line hard
to read. The summary stays on one line, and the error follows on its own lines, as
`bref deploy` shows it.

Claude-Session: https://claude.ai/code/session_01Awk33iZ9mDSg1xgSAPkgGK
@mnapoli
mnapoli merged commit 20c4b19 into main Sep 28, 2026
4 checks passed
@mnapoli
mnapoli deleted the deployments-logs-error branch September 28, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant