summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/custom_patch_options_menu_action.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/controllers/custom_patch_options_menu_action.go')
-rw-r--r--pkg/gui/controllers/custom_patch_options_menu_action.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/controllers/custom_patch_options_menu_action.go b/pkg/gui/controllers/custom_patch_options_menu_action.go
index bc37bc2d8..c3defb380 100644
--- a/pkg/gui/controllers/custom_patch_options_menu_action.go
+++ b/pkg/gui/controllers/custom_patch_options_menu_action.go
@@ -234,7 +234,7 @@ func (self *CustomPatchOptionsMenuAction) handleApplyPatch(reverse bool) error {
}
self.c.LogAction(action)
if err := self.c.Git().Patch.ApplyCustomPatch(reverse); err != nil {
- return self.c.Error(err)
+ return err
}
return self.c.Refresh(types.RefreshOptions{Mode: types.ASYNC})
}
@@ -244,7 +244,7 @@ func (self *CustomPatchOptionsMenuAction) copyPatchToClipboard() error {
self.c.LogAction(self.c.Tr.Actions.CopyPatchToClipboard)
if err := self.c.OS().CopyToClipboard(patch); err != nil {
- return self.c.Error(err)
+ return err
}
self.c.Toast(self.c.Tr.PatchCopiedToClipboard)