Skip to content

Commit

Permalink
config: fix error wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Feb 8, 2024
1 parent df4aa2e commit bf7186c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit bf7186c

Please sign in to comment.