From b32f36287aa2a30b0a90d6738116dcb6c7097551 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 2 Dec 2020 13:59:27 -0500 Subject: [PATCH] Improve shardId not found message With this, we'll show the shardId value in the error message instead of `Func<....blahblah` --- Halforbit.DataStores/Implementation/ShardedDataStore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Halforbit.DataStores/Implementation/ShardedDataStore.cs b/Halforbit.DataStores/Implementation/ShardedDataStore.cs index a9f1a0c..aa3175e 100644 --- a/Halforbit.DataStores/Implementation/ShardedDataStore.cs +++ b/Halforbit.DataStores/Implementation/ShardedDataStore.cs @@ -185,7 +185,7 @@ IDataStore ResolveStore(string shardId) return shardStore; } - throw new ArgumentException($"A shard with id '{_keyToShardId}' is not configured."); + throw new ArgumentException($"A shard with id '{shardId}' is not configured."); } IDataStore ResolveStore(TKey key) => ResolveStore(_keyToShardId(key));