refactor: moved all fatal errors to logrus
All checks were successful
continuous-integration/drone/push Build is passing

This will allow us to test commands that would normally exit
This commit is contained in:
2021-07-21 09:04:34 +01:00
parent 2158dc851c
commit 29971c36a0
4 changed files with 12 additions and 10 deletions

View File

@ -1,12 +1,15 @@
package client
import "github.com/docker/cli/cli/connhelper"
import (
"github.com/docker/cli/cli/connhelper"
"github.com/sirupsen/logrus"
)
func newConnectionHelper(daemonURL string) *connhelper.ConnectionHelper {
helper, err := connhelper.GetConnectionHelper(daemonURL)
if err != nil {
panic(err)
logrus.Fatal(err)
}
return helper
}