cstamas commented on code in PR #1662:
URL: https://github.com/apache/maven-resolver/pull/1662#discussion_r2534864251
##########
maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/synccontext/named/NamedLockFactoryAdapter.java:
##########
@@ -216,12 +218,50 @@ public void acquire(Collection<? extends Artifact>
artifacts, Collection<? exten
}
}
if (!illegalStateExceptions.isEmpty()) {
- IllegalStateException ex = new IllegalStateException("Could
not acquire lock(s)");
+ String message = "Could not acquire " + (shared ? "read" :
"write") + " lock for "
Review Comment:
```suggestion
String message = "Could not acquire " + (shared ? "shared" :
"exclusive") + " lock for "
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]