Merge pull request #28551 from renatocaval/fix-akka-discovery-error-message

Improved error message when loading ServiceDiscovery impl
This commit is contained in:
Patrik Nordwall 2020-02-04 14:37:36 +01:00 committed by GitHub
commit 84e88bff02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ final class Discovery(implicit system: ExtendedActorSystem) extends Extension {
if (config.hasPath(path)) config.getString(path) if (config.hasPath(path)) config.getString(path)
else else
throw new IllegalArgumentException( throw new IllegalArgumentException(
s"$path must contain field `class` that is a FQN of a `akka.discovery.ServiceDiscovery` implementation") s"$path must point to a FQN of a `akka.discovery.ServiceDiscovery` implementation")
def create(clazzName: String): Try[ServiceDiscovery] = { def create(clazzName: String): Try[ServiceDiscovery] = {
dynamic dynamic