Skip to content

Commit 8657e98

Browse files
committed
Updated error messages
1 parent 603e8b9 commit 8657e98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FirebaseAdmin/FirebaseAdmin/Messaging/InstanceIdClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,18 @@ private void ValidateRegistrationTokenList(IReadOnlyList<string> registrationTok
126126
{
127127
if (registrationTokens == null)
128128
{
129-
throw new ArgumentNullException("Registration tokens list must not be null");
129+
throw new ArgumentNullException("Registration token list must not be null");
130130
}
131131

132132
var count = registrationTokens.Count;
133133
if (count == 0)
134134
{
135-
throw new ArgumentException("Registration tokens list must not be empty");
135+
throw new ArgumentException("Registration token list must not be empty");
136136
}
137137

138138
if (count > 1000)
139139
{
140-
throw new ArgumentException("Registration tokens list must not contain more than 1000 tokens");
140+
throw new ArgumentException("Registration token list must not contain more than 1000 tokens");
141141
}
142142

143143
foreach (var registrationToken in registrationTokens)

0 commit comments

Comments
 (0)