Repository: jesseduffield/lazygit (language: go)

Issue:
Error when trying to copy Commit URL
**Describe the bug**
When I'm trying to copy commit URL, its producing an error

**To Reproduce**
Steps to reproduce the behavior:

1. Go to 'commits'
2. Press y and select u (Commit URL)
3. See error

**Expected behavior**
Just like other options, the URL should be copied to the clipboard.

**Screenshots**
![image](https://github.com/jesseduffield/lazygit/assets/41298152/88306bee-aadf-4354-b3d5-abbfdafd593c)


**Version info:**
_Run `lazygit --version` and paste the result here_commit=, build date=, build source=homebrew, version=0.40.2, os=darwin, arch=arm64, git version=2.41.0
_Run `git --version` and paste the result here_git version 2.41.0



Discussion / hints:

Fix patch:
diff --git a/pkg/gui/controllers/basic_commits_controller.go b/pkg/gui/controllers/basic_commits_controller.go
index 71e409483e9..aec24838bb7 100644
--- a/pkg/gui/controllers/basic_commits_controller.go
+++ b/pkg/gui/controllers/basic_commits_controller.go
@@ -152,7 +152,7 @@ func (self *BasicCommitsController) copyCommitSHAToClipboard(commit *models.Comm
 func (self *BasicCommitsController) copyCommitURLToClipboard(commit *models.Commit) error {
 	url, err := self.c.Helpers().Host.GetCommitURL(commit.Sha)
 	if err != nil {
-		return err
+		return self.c.Error(err)
 	}
 
 	self.c.LogAction(self.c.Tr.Actions.CopyCommitURLToClipboard)


Test patch: