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:
Sebastiaan van Stijn 2022-10-02 01:58:09 +02:00
parent e974599593
commit 881fff1a2f
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -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)
}
}