branch: elpa/go-mode
commit 4b1c93f0e4f4f13793a33a546512edaa7d557e33
Author: Dominik Honnef <[email protected]>
Commit: Dominik Honnef <[email protected]>
use error instead of message in godef--call
---
go-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/go-mode.el b/go-mode.el
index f473075..94a965f 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -954,9 +954,9 @@ visit FILENAME and go to line LINE and column COLUMN."
"Call godef, acquiring definition position and expression
description at POINT."
(if (go--xemacs-p)
- (message "godef does not reliably work in XEmacs, expect bad results"))
+ (error "godef does not reliably work in XEmacs, expect bad results"))
(if (not (buffer-file-name (go--coverage-origin-buffer)))
- (message "Cannot use godef on a buffer without a file name")
+ (error "Cannot use godef on a buffer without a file name")
(let ((outbuf (get-buffer-create "*godef*")))
(with-current-buffer outbuf
(erase-buffer))