Skip to content

Commit

Permalink
fix registration spelling (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
m1 authored and hiranya911 committed Dec 17, 2019
1 parent 7f143a5 commit d6b48e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions messaging/messaging.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ var (
},
"PERMISSION_DENIED": {
mismatchedCredential,
"sender id does not match regisration token; code: " + mismatchedCredential,
"sender id does not match registration token; code: " + mismatchedCredential,
},
"RESOURCE_EXHAUSTED": {
messageRateExceeded,
Expand All @@ -87,7 +87,7 @@ var (
},
"SENDER_ID_MISMATCH": {
mismatchedCredential,
"sender id does not match regisration token; code: " + mismatchedCredential,
"sender id does not match registration token; code: " + mismatchedCredential,
},
"QUOTA_EXCEEDED": {
messageRateExceeded,
Expand Down
2 changes: 1 addition & 1 deletion messaging/messaging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ var httpErrors = []struct {
},
{
resp: "{\"error\": {\"status\": \"SENDER_ID_MISMATCH\", \"message\": \"test error\"}}",
want: "http error status: 500; reason: sender id does not match regisration token; code: mismatched-credential; " +
want: "http error status: 500; reason: sender id does not match registration token; code: mismatched-credential; " +
"details: test error",
check: IsMismatchedCredential,
},
Expand Down

0 comments on commit d6b48e2

Please sign in to comment.