mirror of
https://github.com/containers/podman.git
synced 2025-12-06 05:37:49 +08:00
When a new API call is added to the bindings we should guard it based on the version and throw a useful error. Right now an old server that does not implement a given endpoint would throw a "NOT FOUND" error which is not good for callers. Instead implement a custom error type to give a usefule error instead. This allows bindings users to call errors.As() to know if they call and to old version. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2.6 KiB
2.6 KiB