Merge pull request #28551 from renatocaval/fix-akka-discovery-error-message
Improved error message when loading ServiceDiscovery impl
This commit is contained in:
commit
84e88bff02
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue