diff options
author | baude <bbaude@redhat.com> | 2020-01-19 10:39:50 -0600 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-01-21 12:50:41 -0600 |
commit | 78e4e83e92b2c17ed59564e8f504f17008c7d269 (patch) | |
tree | 6090f92ae5a6f5aebf0711d05e9ad69bb2b39aeb /pkg/api/handlers/utils | |
parent | fb2bd26f7331ee3a1ca9690d9c2960ccadebc68f (diff) | |
download | podman-78e4e83e92b2c17ed59564e8f504f17008c7d269.tar.gz podman-78e4e83e92b2c17ed59564e8f504f17008c7d269.tar.bz2 podman-78e4e83e92b2c17ed59564e8f504f17008c7d269.zip |
[CI:DOCS]First pass at review comments
Tackling the first comments in the review pass. More to come.
Signed-off-by: baude <bbaude@redhat.com>
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/api/handlers/utils')
-rw-r--r-- | pkg/api/handlers/utils/errors.go | 5 |
1 files changed, 5 insertions, 0 deletions
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) +} |