Function: majutsu--process-error-summary-from-string
majutsu--process-error-summary-from-string is a natively compiled
function defined in majutsu-process.el.
Signature
(majutsu--process-error-summary-from-string OUTPUT)
Documentation
Return a one-line error summary extracted from OUTPUT.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-process.el
(defun majutsu--process-error-summary-from-string (output)
"Return a one-line error summary extracted from OUTPUT."
(when (and (stringp output) (not (string-empty-p output)))
(with-temp-buffer
(insert output)
(goto-char (point-max))
(catch 'found
(dolist (re majutsu-process-error-message-regexps)
(when-let* ((match (save-excursion
(when (re-search-backward re nil t)
(string-trim (match-string 1))))))
(throw 'found match)))
nil))))