chiark / gitweb /
stgit.el: Canonicalize some error messages
authorGustav Hållberg <gustav@virtutech.com>
Mon, 29 Dec 2008 14:32:58 +0000 (15:32 +0100)
committerKarl Hasselström <kha@treskal.com>
Mon, 29 Dec 2008 14:32:58 +0000 (15:32 +0100)
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
Signed-off-by: Karl Hasselström <kha@treskal.com>
contrib/stgit.el

index b66a1caa640343622de2e02a3ee724e0e43fc326..21ef28a14f26d74ed280745100af6206b1961062 100644 (file)
@@ -25,7 +25,7 @@   (defun git-get-top-dir (dir)
                     (cd dir)
                     (unless (eq 0 (call-process "git" nil t nil
                                                 "rev-parse" "--show-cdup"))
-                      (error "cannot find top-level git tree for %s." dir))))))
+                      (error "Cannot find top-level git tree for %s" dir))))))
       (expand-file-name (concat (file-name-as-directory dir)
                                 (car (split-string cdup "\n")))))))
 
@@ -406,7 +406,7 @@ (defun stgit-git-status ()
   "Show status using `git-status'."
   (interactive)
   (unless (fboundp 'git-status)
-    (error "stgit-git-status requires git-status"))
+    (error "The stgit-git-status command requires git-status"))
   (let ((dir default-directory))
     (save-selected-window
       (pop-to-buffer nil)
@@ -849,9 +849,9 @@ (defun stgit-refresh (&optional arg)
   (let ((patchargs (if arg
                        (let ((patches (stgit-patches-marked-or-at-point)))
                          (cond ((null patches)
-                                (error "no patch to update"))
+                                (error "No patch to update"))
                                ((> (length patches) 1)
-                                (error "too many patches selected"))
+                                (error "Too many patches selected"))
                                (t
                                 (cons "-p" patches))))
                      nil)))