Skip to content

Commit 5eca9d2

Browse files
Fix an error message to be more accurate
1 parent d325781 commit 5eca9d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v2/thirdpartyemailpassword/common-customizations/handling-signinup-success.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ func main() {
599599
if field.ID == "name" {
600600
valueAsString, asStrOk := field.Value.(string)
601601
if !asStrOk {
602-
return epmodels.SignUpPOSTResponse{}, errors.New("Should never come here as we check the type during validation")
602+
return epmodels.SignUpPOSTResponse{}, errors.New("name should be a string")
603603
}
604604
name = valueAsString
605605
}

0 commit comments

Comments
 (0)