Skip to content

Commit d6b48e2

Browse files
m1hiranya911
authored andcommitted
fix registration spelling (#314)
1 parent 7f143a5 commit d6b48e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

messaging/messaging.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var (
6161
},
6262
"PERMISSION_DENIED": {
6363
mismatchedCredential,
64-
"sender id does not match regisration token; code: " + mismatchedCredential,
64+
"sender id does not match registration token; code: " + mismatchedCredential,
6565
},
6666
"RESOURCE_EXHAUSTED": {
6767
messageRateExceeded,
@@ -87,7 +87,7 @@ var (
8787
},
8888
"SENDER_ID_MISMATCH": {
8989
mismatchedCredential,
90-
"sender id does not match regisration token; code: " + mismatchedCredential,
90+
"sender id does not match registration token; code: " + mismatchedCredential,
9191
},
9292
"QUOTA_EXCEEDED": {
9393
messageRateExceeded,

messaging/messaging_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ var httpErrors = []struct {
10951095
},
10961096
{
10971097
resp: "{\"error\": {\"status\": \"SENDER_ID_MISMATCH\", \"message\": \"test error\"}}",
1098-
want: "http error status: 500; reason: sender id does not match regisration token; code: mismatched-credential; " +
1098+
want: "http error status: 500; reason: sender id does not match registration token; code: mismatched-credential; " +
10991099
"details: test error",
11001100
check: IsMismatchedCredential,
11011101
},

0 commit comments

Comments
 (0)