-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(core): ensure tuple passed to aggregate create nodes error #26456
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit ae44701. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
@@ -226,6 +226,11 @@ export class AggregateCreateNodesError extends Error { | |||
) { | |||
super('Failed to create nodes'); | |||
this.name = this.constructor.name; | |||
if (!Array.isArray(errors) || (errors.length && errors[0].length !== 2)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should check more than the first element. 🤷 I don't see an reason why not?
f07fe16
to
ae44701
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
We throw an invalid aggregate create nodes error if a plugin hard-fails
Expected Behavior
All aggregate create nodes errors are Array
Related Issue(s)
Fixes #