refactor: moved all fatal errors to logrus
All checks were successful
continuous-integration/drone/push Build is passing
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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user