diff --git a/http/sys_generate_root.go b/http/sys_generate_root.go index 418b1a4fd..3697f8035 100644 --- a/http/sys_generate_root.go +++ b/http/sys_generate_root.go @@ -120,7 +120,7 @@ func handleSysGenerateRootUpdate(core *vault.Core) http.Handler { if req.Key == "" { respondError( w, http.StatusBadRequest, - errors.New("'key' must specified in request body as JSON")) + errors.New("'key' must be specified in request body as JSON")) return } diff --git a/http/sys_rekey.go b/http/sys_rekey.go index 023452c18..bd597b61b 100644 --- a/http/sys_rekey.go +++ b/http/sys_rekey.go @@ -168,7 +168,7 @@ func handleSysRekeyUpdate(core *vault.Core, recovery bool) http.Handler { if req.Key == "" { respondError( w, http.StatusBadRequest, - errors.New("'key' must specified in request body as JSON")) + errors.New("'key' must be specified in request body as JSON")) return } diff --git a/http/sys_seal.go b/http/sys_seal.go index 07ffbcd5b..ef2430495 100644 --- a/http/sys_seal.go +++ b/http/sys_seal.go @@ -88,7 +88,7 @@ func handleSysUnseal(core *vault.Core) http.Handler { if !req.Reset && req.Key == "" { respondError( w, http.StatusBadRequest, - errors.New("'key' must specified in request body as JSON, or 'reset' set to true")) + errors.New("'key' must be specified in request body as JSON, or 'reset' set to true")) return }