From 448ef5cf64c7478885fde67154fc2d0deb961d2e Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Sun, 6 Jun 2010 01:52:01 -0700 Subject: [PATCH] Add an error message for magit-display-process. This message is more descriptive than the default when Magit hasn't run a Git command. --- magit.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/magit.el b/magit.el index 3440e384..7deb0246 100644 --- a/magit.el +++ b/magit.el @@ -1397,6 +1397,8 @@ FUNC should leave point at the end of the modified region" (defun magit-display-process () "Display output from most recent git command" (interactive) + (unless (get-buffer magit-process-buffer-name) + (error "No Git commands have run")) (display-buffer magit-process-buffer-name)) ;;; Mode