# HG changeset patch # User Richard M. Stallman # Date 805123471 0 # Node ID cca1dbc550dd73f95aefa4cb5202314096a58968 # Parent 543e6df4f75385056e80952a0ccf0190cdeea822 (vc-fetch-master-properties): Better error message in case the "cvs status" command fails. diff -r 543e6df4f753 -r cca1dbc550dd lisp/vc-hooks.el --- a/lisp/vc-hooks.el Fri Jul 07 13:22:05 1995 +0000 +++ b/lisp/vc-hooks.el Fri Jul 07 13:24:31 1995 +0000 @@ -280,15 +280,20 @@ ;; command, because that would change its default directory (save-excursion (set-buffer (get-buffer-create "*vc-info*")) (erase-buffer)) - (let ((exec-path (append vc-path exec-path)) + (let ((exec-path (append vc-path exec-path)) exec-status ;; Add vc-path to PATH for the execution of this command. (process-environment (cons (concat "PATH=" (getenv "PATH") path-separator (mapconcat 'identity vc-path path-separator)) process-environment))) - (apply 'call-process "cvs" nil "*vc-info*" nil - (list "status" file))) + (setq exec-status + (apply 'call-process "cvs" nil "*vc-info*" nil + (list "status" file))) + (cond ((> exec-status 0) + (switch-to-buffer (get-file-buffer file)) + (display-buffer "*vc-info*") + (error "Couldn't find version control information")))) (set-buffer (get-buffer "*vc-info*")) (set-buffer-modified-p nil) (auto-save-mode nil)