summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/stash_controller.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/controllers/stash_controller.go')
-rw-r--r--pkg/gui/controllers/stash_controller.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/controllers/stash_controller.go b/pkg/gui/controllers/stash_controller.go
index 8b5e068b5..403c22b67 100644
--- a/pkg/gui/controllers/stash_controller.go
+++ b/pkg/gui/controllers/stash_controller.go
@@ -109,7 +109,7 @@ func (self *StashController) handleStashApply(stashEntry *models.StashEntry) err
err := self.c.Git().Stash.Apply(stashEntry.Index)
_ = self.postStashRefresh()
if err != nil {
- return self.c.Error(err)
+ return err
}
return nil
}
@@ -133,7 +133,7 @@ func (self *StashController) handleStashPop(stashEntry *models.StashEntry) error
err := self.c.Git().Stash.Pop(stashEntry.Index)
_ = self.postStashRefresh()
if err != nil {
- return self.c.Error(err)
+ return err
}
return nil
}
@@ -160,7 +160,7 @@ func (self *StashController) handleStashDrop(stashEntry *models.StashEntry) erro
err := self.c.Git().Stash.Drop(stashEntry.Index)
_ = self.c.Refresh(types.RefreshOptions{Scope: []types.RefreshableView{types.STASH}})
if err != nil {
- return self.c.Error(err)
+ return err
}
return nil
},