Skip to content

Conversation

@Julusian
Copy link
Member

@Julusian Julusian commented Dec 2, 2025

Replaces #1512

About the Contributor

This pull request is posted on behalf of Superfly

Type of Contribution

This is a: Code improvement

Current Behavior

When uploading a blueprint fails with a parsing error, the actual error isnt logged, making it hard to figure out what the problem is

New Behavior

This error is now logged

Testing

  • I have added one or more unit tests for this PR
  • I have updated the relevant unit tests
  • No unit test changes are needed for this PR

Affected areas

Time Frame

Other Information

Status

  • PR is ready to be reviewed.
  • The functionality has been tested by the author.
  • Relevant unit tests has been added / updated.
  • Relevant documentation (code comments, system documentation) has been added / updated.

@Julusian Julusian requested a review from a team as a code owner December 2, 2025 13:27
@codecov-commenter
Copy link

codecov-commenter commented Dec 2, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
meteor/server/api/blueprints/api.ts 50.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

} catch (e) {
logger.error(`Error evaluating Blueprint "${blueprintId}": "${stringifyError(e)}"`)

throw new Meteor.Error(400, `Blueprint ${blueprintId} failed to parse`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we put more information in the request response here as well? That way I can see it straight away when I run yarn build-sync-local on my blueprints - I don't have to go hunting in server log files somewhere.

I did try this when I had a bad blueprint upload to diagnose, but didn't get around to making a PR:

release53...rjmunro/improve-blueprint-upload-errors

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.

3 participants