diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2026-03-28 13:23:07 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2026-03-28 13:23:07 +0100 |
| commit | b9bbbe6d9cdff3b3ccf744c466cea23ed09fe038 (patch) | |
| tree | 2f3bfb4f2a85fc0d2bbd85f231710d40ebd202ed /lisp/magit-git.el | |
| parent | 71047f4d45b44aeaedf8cb66eace3e4ec203db0f (diff) | |
magit--git-insert: Prefix debugging messages
We enable `magit-git-debug' in hairy cases, in which case it helps
to avoid any possible confusion, such about whether a given message
is coming from here or elsewhere.
Diffstat (limited to 'lisp/magit-git.el')
| -rw-r--r-- | lisp/magit-git.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index b4b3200..3ef4836 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -562,9 +562,10 @@ insert the run command and stderr into the process buffer." exit log 'magit-section-secondary-heading) exit))))) (cond ((not magit-git-debug)) - (errmsg (message "%s" errmsg)) + (errmsg (message "magit--git-insert: %S" errmsg)) ((zerop exit)) - ((message "Git returned with exit-code %s" exit)))) + ((message "magit--git-insert: %s %s" + "Git returned with exit-code" exit)))) (or (and return-error errmsg) exit)) (ignore-errors (delete-file log)))) |
