From dbbc1e25ca3f62ba99a540af76059c486fa8c1d8 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Mon, 29 May 2023 17:01:04 +0300 Subject: [PATCH] replaced multiple error wraps with plain %v for older go 1.18 and go 1.19 compatibility --- plugins/ghupdate/ghupdate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ghupdate/ghupdate.go b/plugins/ghupdate/ghupdate.go index 631f03fc..b93c423c 100644 --- a/plugins/ghupdate/ghupdate.go +++ b/plugins/ghupdate/ghupdate.go @@ -188,7 +188,7 @@ func (p *plugin) update(withBackup bool) error { // try again with an .exe extension newExec = newExec + ".exe" if _, fallbackErr := os.Stat(newExec); fallbackErr != nil { - return fmt.Errorf("The executable in the extracted path is missing or it is inaccessible: %w, %w", err, fallbackErr) + return fmt.Errorf("The executable in the extracted path is missing or it is inaccessible: %v, %v", err, fallbackErr) } }