Skip to content

Conversation

@isoos
Copy link
Collaborator

@isoos isoos commented Oct 31, 2025

@isoos isoos requested a review from sigurdm October 31, 2025 15:17
if (state == null) {
throw NotFoundException.resource('$package/$version');
throw NotFoundException.resource(
'PackageState($runtimeVersion/$package)',
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't you want to also include the version here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The lookup above depends only on the runtimeVersion and the package name, the version check comes only later. I think removing the version from the message makes it better focused on the operation.

Copy link
Contributor

Choose a reason for hiding this comment

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

Fair

@isoos isoos merged commit 7ec7cab into dart-lang:master Nov 3, 2025
24 checks passed
@isoos isoos deleted the not-found-ex branch November 3, 2025 12:33
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