diff --git a/Lib/Common/Shared/Protocol/HttpRequestMessageFactory.cs b/Lib/Common/Shared/Protocol/HttpRequestMessageFactory.cs index dda42f0c..9372dd9e 100644 --- a/Lib/Common/Shared/Protocol/HttpRequestMessageFactory.cs +++ b/Lib/Common/Shared/Protocol/HttpRequestMessageFactory.cs @@ -200,10 +200,10 @@ internal static void AddMetadata(StorageRequestMessage request, IDictionaryThe metadata value. internal static void AddMetadata(StorageRequestMessage request, string name, string value) { - CommonUtility.AssertNotNull("value", value); - if (string.IsNullOrWhiteSpace(value)) + CommonUtility.AssertNotNull(nameof(name), name); + if (string.IsNullOrWhiteSpace(name)) { - throw new ArgumentException(SR.ArgumentEmptyError, value); + throw new ArgumentException(SR.ArgumentEmptyError, name); } request.Headers.Add("x-ms-meta-" + name, value);