From e09c60a702a03695552d095458ee7da4671b5c2f Mon Sep 17 00:00:00 2001 From: Insthync Date: Wed, 28 Jul 2021 03:09:07 +0700 Subject: [PATCH] Add missing keys count and values count in throwing exception --- Scripts/NodeDataCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/NodeDataCache.cs b/Scripts/NodeDataCache.cs index f865ab2..d1bc756 100644 --- a/Scripts/NodeDataCache.cs +++ b/Scripts/NodeDataCache.cs @@ -226,7 +226,7 @@ namespace XNode { this.Clear(); if (keys.Count != values.Count) - throw new System.Exception(string.Format("there are {0} keys and {1} values after deserialization. Make sure that both key and value types are serializable.")); + throw new System.Exception(string.Format("there are {0} keys and {1} values after deserialization. Make sure that both key and value types are serializable.", keys.Count, values.Count)); for (int i = 0; i < keys.Count; i++) this.Add(keys[i], values[i]);