Warn about non existant fallback

This commit is contained in:
md_5 2013-07-02 19:43:48 +10:00
parent d1760dad93
commit 3aef35ccbb

View File

@ -84,6 +84,7 @@ public class Configuration
for ( ListenerInfo listener : listeners )
{
Preconditions.checkArgument( servers.containsKey( listener.getDefaultServer() ), "Default server %s is not defined", listener.getDefaultServer() );
Preconditions.checkArgument( servers.containsKey( listener.getFallbackServer() ), "Fallback server %s is not defined", listener.getFallbackServer() );
}
}
}