From 78e4e83e92b2c17ed59564e8f504f17008c7d269 Mon Sep 17 00:00:00 2001 From: baude Date: Sun, 19 Jan 2020 10:39:50 -0600 Subject: [CI:DOCS]First pass at review comments Tackling the first comments in the review pass. More to come. Signed-off-by: baude Signed-off-by: Brent Baude --- pkg/api/handlers/utils/errors.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/api/handlers/utils') diff --git a/pkg/api/handlers/utils/errors.go b/pkg/api/handlers/utils/errors.go index 3ec0742bd..b6f125c58 100644 --- a/pkg/api/handlers/utils/errors.go +++ b/pkg/api/handlers/utils/errors.go @@ -86,3 +86,8 @@ func (e ErrorModel) Error() string { func (e ErrorModel) Cause() error { return errors.New(e.Because) } + +// UnsupportedParameter logs a given param by its string name as not supported. +func UnSupportedParameter(param string) { + log.Infof("API parameter %q: not supported", param) +} -- cgit v1.2.3-54-g00ecf