correct ActorSystem’s error message for invalid system name, see #2246

This commit is contained in:
Roland Kuhn 2012-06-18 10:20:43 +03:00
parent faff67c7fa
commit 0df105f8a1

View file

@ -430,7 +430,7 @@ private[akka] class ActorSystemImpl(val name: String, applicationConfig: Config,
if (!name.matches("""^[a-zA-Z0-9][a-zA-Z0-9-]*$"""))
throw new IllegalArgumentException(
"invalid ActorSystem name [" + name +
"], must contain only word characters (i.e. [a-zA-Z_0-9] plus non-leading '-')")
"], must contain only word characters (i.e. [a-zA-Z0-9] plus non-leading '-')")
import ActorSystem._