Function: magit-process-remove-bogus-errors
magit-process-remove-bogus-errors is a byte-compiled function defined
in magit-process.el.
Signature
(magit-process-remove-bogus-errors STR)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-process.el
(defun magit-process-remove-bogus-errors (str)
(save-match-data
(when (string-match "^\\(\\*ERROR\\*: \\)Canceled by user" str)
(setq str (replace-match "" nil nil str 1)))
(when (string-match "^error: There was a problem with the editor.*\n" str)
(setq str (replace-match "" nil nil str)))
(when (string-match
"^Please supply the message using either -m or -F option\\.\n" str)
(setq str (replace-match "" nil nil str))))
str)