From cd73714ff95aaca44da0b85c18438a0f9add671a Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 14 Mar 2017 17:10:43 -0400 Subject: [PATCH] Fix error message grammar --- http/sys_generate_root.go | 2 +- http/sys_rekey.go | 2 +- http/sys_seal.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 }