libnetwork: processSetKeyReexec: don't use logrus.Fatal()
Just print the error and os.Exit() instead, which makes it more explicit that we're exiting, and there's no need to decorate the error. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
e974599593
commit
881fff1a2f
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@ const (
|
|||
// The docker exec-root can be specified as "-exec-root" flag. The default value is "/run/docker".
|
||||
func processSetKeyReexec() {
|
||||
if err := setKey(); err != nil {
|
||||
logrus.Fatal(err)
|
||||
_, _ = fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue