Skip to content

Commit

Permalink
Removing error stutter
Browse files Browse the repository at this point in the history
  • Loading branch information
willvedd committed Sep 19, 2023
1 parent 82c3979 commit 286541e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/auth/authutil/user_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (u *UserInfo) UnmarshalJSON(b []byte) error {
return err
}
default:
return fmt.Errorf("unable to unmarshal JSON for email_verified field. Expected bool or string, got: %s", reflect.TypeOf(rawEmailVerified))
return fmt.Errorf("email_verified field expected to be bool or string, got: %s", reflect.TypeOf(rawEmailVerified))
}
alias.EmailVerified = &emailVerified
}
Expand Down
2 changes: 1 addition & 1 deletion internal/auth/authutil/user_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestUserInfo(t *testing.T) {
},
{
name: "Email verified field not string or bool",
expect: "cannot decode response: unable to unmarshal JSON for email_verified field. Expected bool or string, got: float64",
expect: "cannot decode response: email_verified field expected to be bool or string, got: float64",
httpStatus: http.StatusOK,
response: `{ "email_verified": 0 }`,
},
Expand Down

0 comments on commit 286541e

Please sign in to comment.