Skip to content

Commit

Permalink
Add ErrWrongPassword and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur White committed Mar 29, 2018
1 parent 899eb03 commit 5355966
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ var (
}}
ErrNotURL = &ErrorID{ID: "notURL", Locales: map[language.Tag]string{
language.English: "It's not a web address.",
language.French: "Ce n'est pas adresse web.",
language.French: "Ce n'est pas une adresse web.",
}}
ErrNotUnique = &ErrorID{ID: "notUnique", Locales: map[language.Tag]string{
language.English: "This value already exists.",
Expand All @@ -111,6 +111,10 @@ var (
language.English: "A value is required.",
language.French: "Une valeur est requise.",
}}
ErrWrongPassword = &ErrorID{ID: "password", Locales: map[language.Tag]string{
language.English: "The password is wrong.",
language.French: "Le mot de passe est incorrect.",
}}
)

// An Error is a checking error from a rule, with rule's variables.
Expand Down

0 comments on commit 5355966

Please sign in to comment.