diff options
Diffstat (limited to 'internal/ui/form/api_key.go')
-rw-r--r-- | internal/ui/form/api_key.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/ui/form/api_key.go b/internal/ui/form/api_key.go index 1eb754bc..b87322a5 100644 --- a/internal/ui/form/api_key.go +++ b/internal/ui/form/api_key.go @@ -6,7 +6,7 @@ package form // import "miniflux.app/v2/internal/ui/form" import ( "net/http" - "miniflux.app/v2/internal/errors" + "miniflux.app/v2/internal/locale" ) // APIKeyForm represents the API Key form. @@ -15,9 +15,9 @@ type APIKeyForm struct { } // Validate makes sure the form values are valid. -func (a APIKeyForm) Validate() error { +func (a APIKeyForm) Validate() *locale.LocalizedError { if a.Description == "" { - return errors.NewLocalizedError("error.fields_mandatory") + return locale.NewLocalizedError("error.fields_mandatory") } return nil |