Skip to content

Conversation

KSDaemon
Copy link
Member

@KSDaemon KSDaemon commented Oct 2, 2025

This PR updates ErrorReporter to fancy print compile errors grouped by files.
Something like this:

Compile errors:
schema/custom.js Errors:
Parse error

schema/orders.js Errors:
Missing required field

schema/products.js Errors:
Validation error

schema/users.js Errors:
Syntax Error: Invalid measure definition
  2 |   sql: \`SELECT * FROM users\`,
  3 |   measures: {
> 4 |     count: {
    |    ^^^^^ Invalid measure definition
  5 |       type: 'count'
  6 |     }
  7 |   }

Check List

  • Tests have been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet

@KSDaemon KSDaemon marked this pull request as ready for review October 2, 2025 18:47
@KSDaemon KSDaemon requested a review from a team as a code owner October 2, 2025 18:47
@KSDaemon KSDaemon merged commit 0c5c21c into master Oct 3, 2025
103 of 104 checks passed
@KSDaemon KSDaemon deleted the fix/error-reporter branch October 3, 2025 10:34
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.

2 participants