summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-07-17 19:55:29 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-07-30 18:35:23 +1000
commitfb4453c18a7b53bb3b03006759221b50c856abb0 (patch)
tree5fa52756fe0930a770a90ea4f6efad1ae1b8622b /pkg/gui
parentb5ff55e538dded74e163a90bdf9793939eb733b7 (diff)
Fix unit tests
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/controllers/helpers/worktree_helper.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/controllers/helpers/worktree_helper.go b/pkg/gui/controllers/helpers/worktree_helper.go
index db59b1afe..d75691525 100644
--- a/pkg/gui/controllers/helpers/worktree_helper.go
+++ b/pkg/gui/controllers/helpers/worktree_helper.go
@@ -64,7 +64,7 @@ func (self *WorktreeHelper) GetLinkedWorktreeName() string {
func (self *WorktreeHelper) IsCurrentWorktree(w *models.Worktree) bool {
pwd, err := os.Getwd()
if err != nil {
- self.c.Log.Errorf("failed to obtain current working directory: %w", err)
+ self.c.Log.Errorf("failed to obtain current working directory: %v", err)
return false
}
@@ -76,7 +76,7 @@ func (self *WorktreeHelper) IsWorktreePathMissing(w *models.Worktree) bool {
if errors.Is(err, fs.ErrNotExist) {
return true
}
- self.c.Log.Errorf("failed to check if worktree path `%s` exists: %w", w.Path, err)
+ self.c.Log.Errorf("failed to check if worktree path `%s` exists: %v", w.Path, err)
return false
}
return false