display number of shards in check
display the actual ammounts of given shards if the range check fails for configured shard IDs
@@ -39,7 +39,7 @@ func InitDiscordBotSession(container di.Container) {
if shardCfg := cfg.Config().Discord.Sharding; shardCfg.Total > 1 {
if shardCfg.ID < 0 || shardCfg.ID >= shardCfg.Total {
- logrus.Fatal("Shard ID must be in range [0, sharding.Total)")
+ logrus.Fatalf("Shard ID must be in range [0, %d)", shardCfg.Total)
}
session.Identify.Shard = &[2]int{shardCfg.ID, shardCfg.Total}
}
