Skip to content
Snippets Groups Projects
Commit f4865a35 authored by rithu leena john's avatar rithu leena john Committed by GitHub
Browse files

Merge pull request #886 from rithujohn191/error-msg-update

storage/static.go: correct the error message that gets displayed.
parents 5eb8210e 5abb4b3d
Branches
Tags 0.37.0-rc3
No related merge requests found
...@@ -139,7 +139,7 @@ func (s staticPasswordsStorage) CreatePassword(p Password) error { ...@@ -139,7 +139,7 @@ func (s staticPasswordsStorage) CreatePassword(p Password) error {
func (s staticPasswordsStorage) DeletePassword(email string) error { func (s staticPasswordsStorage) DeletePassword(email string) error {
if s.isStatic(email) { if s.isStatic(email) {
return errors.New("static passwords: read-only cannot create password") return errors.New("static passwords: read-only cannot delete password")
} }
return s.Storage.DeletePassword(email) return s.Storage.DeletePassword(email)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment