Commit 59f99d4a authored by Phil Sainty's avatar Phil Sainty

Bound the `magit-process-error-summary' search

Otherwise if it doesn't recognise the error message, it would continue
back through previous sections, and report some earlier error.

The following error isn't recognised, for example:

  1 git … rebase origin/master
Cannot rebase: You have unstaged changes.
Please commit or stash them.
parent 260e4afe
......@@ -924,7 +924,8 @@ If STR is supplied, it replaces the `mode-line-process' text."
(lambda (re)
(and (re-search-backward re nil t)
(and (re-search-backward
re (magit-section-start section) t)
(or (match-string-no-properties 1)
(and (not magit-process-raise-error)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment