Improved error message when loading ServiceDiscovery impl

This commit is contained in:
Renato Cavalcanti 2020-01-31 15:50:03 +01:00
parent a6cc73b447
commit 09c0927ca6
No known key found for this signature in database
GPG key ID: C7F92AA2BCB77E03

View file

@ -63,7 +63,7 @@ final class Discovery(implicit system: ExtendedActorSystem) extends Extension {
if (config.hasPath(path)) config.getString(path)
else
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] = {
dynamic