diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2024-11-15 07:53:27 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2024-11-15 07:53:27 +0100 |
| commit | 1f17e515cfbef3acfd2bdf990cd206d6ae02010b (patch) | |
| tree | 090eddbfcfb9b879580238c0f18826e914d33fa7 /lisp/magit-git.el | |
| parent | f5f26b449d78dc2b9ded48c99120748a20d9c1af (diff) | |
magit--git-{insert,wash}: Potentially use complete error text
Diffstat (limited to 'lisp/magit-git.el')
| -rw-r--r-- | lisp/magit-git.el | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index 2c800f7..281fdc2 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -485,9 +485,12 @@ insert the run command and stderr into the process buffer." (insert-file-contents log) (goto-char (point-max)) (setq errmsg - (if (functionp magit-git-debug) - (funcall magit-git-debug (buffer-string)) - (magit--locate-error-message)))) + (cond + ((eq return-error 'full) + (buffer-string)) + ((functionp magit-git-debug) + (funcall magit-git-debug (buffer-string))) + ((magit--locate-error-message))))) (when magit-git-debug (let ((magit-git-debug nil)) (with-current-buffer (magit-process-buffer t) @@ -558,7 +561,7 @@ call function WASHER with ARGS as its sole argument." (declare (indent 2)) (setq args (flatten-tree args)) (let ((beg (point)) - (exit (magit--git-insert keep-error args))) + (exit (magit--git-insert (and keep-error 'full) args))) (when (stringp exit) (goto-char beg) (insert (propertize exit 'face 'error)) |
