diff options
Diffstat (limited to 'pkg/gui/controllers/helpers/patch_building_helper.go')
-rw-r--r-- | pkg/gui/controllers/helpers/patch_building_helper.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/gui/controllers/helpers/patch_building_helper.go b/pkg/gui/controllers/helpers/patch_building_helper.go index a9fe4f6da..d8f83255d 100644 --- a/pkg/gui/controllers/helpers/patch_building_helper.go +++ b/pkg/gui/controllers/helpers/patch_building_helper.go @@ -1,6 +1,8 @@ package helpers import ( + "errors" + "github.com/jesseduffield/lazygit/pkg/commands/types/enums" "github.com/jesseduffield/lazygit/pkg/gui/patch_exploring" "github.com/jesseduffield/lazygit/pkg/gui/types" @@ -24,7 +26,7 @@ func NewPatchBuildingHelper( func (self *PatchBuildingHelper) ValidateNormalWorkingTreeState() (bool, error) { if self.c.Git().Status.WorkingTreeState() != enums.REBASE_MODE_NONE { - return false, self.c.ErrorMsg(self.c.Tr.CantPatchWhileRebasingError) + return false, errors.New(self.c.Tr.CantPatchWhileRebasingError) } return true, nil } |