Skip to content

fix: show meaningful error messages instead of undefined on build/dev failures#137

Merged
rmorehig merged 1 commit intomainfrom
fix/131-undefined-build-errors
Mar 23, 2026
Merged

fix: show meaningful error messages instead of undefined on build/dev failures#137
rmorehig merged 1 commit intomainfrom
fix/131-undefined-build-errors

Conversation

@gnzjgo
Copy link
Copy Markdown
Member

@gnzjgo gnzjgo commented Mar 23, 2026

Closes #131

When a build or deploy fails and the API response doesn't include the expected error fields, the CLI was showing undefined as the error message. Users had to run TINYBIRD_DEBUG=1 tinybird build to see the actual error.

Changes

  • Add fallback error messages in the dev and deploy command error handlers when neither deploy.errors nor result.error are available
  • Make formatErrors() in src/api/build.ts defensive against e.error being undefined
  • Fallback message points users to TINYBIRD_DEBUG=1 as a workaround

@gnzjgo gnzjgo force-pushed the fix/131-undefined-build-errors branch from d6b1dd7 to 0bcef0b Compare March 23, 2026 15:09
@gnzjgo gnzjgo force-pushed the fix/131-undefined-build-errors branch from 0bcef0b to 06c94a1 Compare March 23, 2026 15:40
@rmorehig rmorehig merged commit e04892c into main Mar 23, 2026
2 checks passed
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.

CLI shows 'undefined' error on build/dev failures instead of actual error message

2 participants