From bf7186c2d4977331438cb6e4b1f09d130c966d9b Mon Sep 17 00:00:00 2001 From: sewn Date: Thu, 8 Feb 2024 21:49:00 +0300 Subject: [PATCH] config: fix error wrapping --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 9dac978..f99fcfa 100644 --- a/config/config.go +++ b/config/config.go @@ -139,13 +139,13 @@ func (b *Binary) validate() error { if b.Launcher != "" { if _, err := b.LauncherPath(); err != nil { - return fmt.Errorf("bad launcher: %s", err) + return fmt.Errorf("bad launcher: %w", err) } } if b.WineRoot != "" { if _, err := wine.Wine64(b.WineRoot); err != nil { - return fmt.Errorf("bad wineroot: %s", err) + return fmt.Errorf("bad wineroot: %w", err) } }