Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(node): revert invalid package target change #24539

Merged

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Jul 11, 2024

Reverts this change (I'm not sure it causes a bug, but I thought about this in the morning):

https://github.com/denoland/deno/pull/24470/files/18cd4ff3ff5050e18647c781011a2bc3099cab5c..ac3e42eaaecc6cf89300b39c270029da3ecc1e63?diff=split&w=0

Reason is that e may contain an invalid package target nested deeply in the returned errors. We should probably add a .code() to all errors to make matching easier or make the errors flatter.

@dsherret dsherret requested a review from bartlomieju July 11, 2024 19:51
@dsherret dsherret merged commit 1200f69 into denoland:main Jul 11, 2024
17 checks passed
@dsherret dsherret deleted the chore_revert_invalid_package_target_change branch July 11, 2024 20:32
bartlomieju pushed a commit that referenced this pull request Jul 11, 2024
Reason is that `e` may contain an invalid package target nested deeply
in the returned errors. We should probably add a `.code()` to all errors
to make matching easier or make the errors flatter.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants