1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00

Use Error method to handle commits url copy from unknown service (#3007)

This commit is contained in:
Jesse Duffield 2023-09-13 17:16:53 +10:00 committed by GitHub
commit 20bfa42792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)