diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-21 22:44:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-21 22:44:56 +0100 |
commit | 1b69a8fa3ae67e0ae08377d4d704756904a88611 (patch) | |
tree | a5054bdb3d3718ba8140804ea47c9cb707fb56e3 /pkg/api/handlers/utils/errors.go | |
parent | f467bb20bd1c98b1706fa3c4448857800395c169 (diff) | |
parent | 78e4e83e92b2c17ed59564e8f504f17008c7d269 (diff) | |
download | podman-1b69a8fa3ae67e0ae08377d4d704756904a88611.tar.gz podman-1b69a8fa3ae67e0ae08377d4d704756904a88611.tar.bz2 podman-1b69a8fa3ae67e0ae08377d4d704756904a88611.zip |
Merge pull request #4915 from baude/reviewcorrections
[CI:DOCS]First pass at review comments
Diffstat (limited to 'pkg/api/handlers/utils/errors.go')
-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) +} |