From 4f5c0c00fbb83a21cf5169601b17881775c9ea75 Mon Sep 17 00:00:00 2001 From: rsteube Date: Wed, 14 Feb 2024 09:12:53 +0100 Subject: [PATCH] shim: log error message --- cmd/carapace/cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/carapace/cmd/root.go b/cmd/carapace/cmd/root.go index dfcdc8c3f3..84f2daa26e 100644 --- a/cmd/carapace/cmd/root.go +++ b/cmd/carapace/cmd/root.go @@ -145,11 +145,11 @@ func Execute(version string) error { } if err := shim.Update(); err != nil { - println(err.Error()) // TODO fail / exit 1 ? + carapace.LOG.Printf("failed to update shims: %v", err.Error()) } if err := createOverlayDir(); err != nil { // TODO do this only if needed - println(err.Error()) + carapace.LOG.Printf("failed to create overlay directory: %v", err.Error()) } switch shell {