From d4f622da7d81a9e92fc6c67fa5eec3c8e3172b93 Mon Sep 17 00:00:00 2001 From: Boaz Shuster Date: Thu, 6 Oct 2022 14:08:01 +0300 Subject: Return error in podman system service if URI scheme is not unix/tcp Signed-off-by: Boaz Shuster --- cmd/podman/system/service_abi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/podman/system/service_abi.go b/cmd/podman/system/service_abi.go index 68ac8902b..82419ff1a 100644 --- a/cmd/podman/system/service_abi.go +++ b/cmd/podman/system/service_abi.go @@ -89,7 +89,7 @@ func restService(flags *pflag.FlagSet, cfg *entities.PodmanConfig, opts entities return fmt.Errorf("unable to create socket %v: %w", host, err) } default: - logrus.Debugf("Attempting API Service endpoint scheme %q", uri.Scheme) + return fmt.Errorf("API Service endpoint scheme %q is not supported. Try tcp://%s or unix:/%s", uri.Scheme, opts.URI, opts.URI) } libpodRuntime.SetRemoteURI(uri.String()) } -- cgit v1.2.3-54-g00ecf