Skip to content

Improve error message for unresolved expressions#11615

Open
GaoSSR wants to merge 4 commits intoapache:masterfrom
GaoSSR:fix/improve-error-message-issue-10324
Open

Improve error message for unresolved expressions#11615
GaoSSR wants to merge 4 commits intoapache:masterfrom
GaoSSR:fix/improve-error-message-issue-10324

Conversation

@GaoSSR
Copy link
Contributor

@GaoSSR GaoSSR commented Dec 31, 2025

Fixes #10324

Signed-off-by: 高春晖 <18220699480@163.com>
}
}

for (org.eclipse.aether.graph.Dependency dep : request.getDependencies()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

could be extracted as dedicated branch/concern to provide cohesion over coupling.

Suggested change
for (org.eclipse.aether.graph.Dependency dep : request.getDependencies()) {
return enhanceDependencies(...)

Copy link
Contributor

Choose a reason for hiding this comment

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

I have no idea what that comment means

Adjust if statement formatting to comply with project code style:
- Split OR conditions onto separate lines with proper indentation
- Ensures consistency with Spotless formatting rules
@GaoSSR GaoSSR force-pushed the fix/improve-error-message-issue-10324 branch from 5867ad5 to 1bafff2 Compare January 13, 2026 13:05
@GaoSSR
Copy link
Contributor Author

GaoSSR commented Jan 16, 2026

Thanks for the reviews! Ready to merge?

@GaoSSR
Copy link
Contributor Author

GaoSSR commented Jan 17, 2026

The CI failure on macOS + Java 25 is a network timeout issue when downloading org.jboss.logging:logging-parent:pom:1.0.0.Final. This isn't related to the code changes - 19/20 checks passed, and the main branch has similar intermittent failures.

I've pushed an empty commit to trigger a re-run. Should pass once the network is stable.

Signed-off-by: 高春晖 <18220699480@163.com>
@GaoSSR
Copy link
Contributor Author

GaoSSR commented Feb 14, 2026

I prefer keeping the current implementation - if-else is more readable than ternary operators for this case. But if the project has a standard style guide, I'm happy to adjust. Could a maintainer make the final call? @elharo

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.

[MNG-8751] Bad error message when unresolved expressions exist in POM

3 participants