Skip to content

Commit e726776

Browse files
authored
Merge pull request #1722 from unhammer/tags-no-message-on-fail
Don't message "Tags generated" if tags command exited non-zero
2 parents bf29f20 + 672b900 commit e726776

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

haskell-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,8 +1205,8 @@ generated."
12051205
(command (haskell-cabal--compose-hasktags-command dir)))
12061206
(if (not command)
12071207
(error "Unable to compose hasktags command")
1208-
(shell-command command)
1209-
(haskell-mode-message-line "Tags generated.")
1208+
(when (zerop (shell-command command))
1209+
(haskell-mode-message-line "Tags generated."))
12101210
(when and-then-find-this-tag
12111211
(let ((tags-file-name dir))
12121212
(xref-find-definitions and-then-find-this-tag))))))

0 commit comments

Comments
 (0)