Function: cider--shorten-error-message

cider--shorten-error-message is a byte-compiled function defined in cider-compilation.el.

Signature

(cider--shorten-error-message ERR)

Documentation

Remove from ERR the prefix matched by cider-clojure-compilation-regexp, and the suffix matched by cider-module-info-regexp.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-compilation.el
(defun cider--shorten-error-message (err)
  "Remove from ERR the prefix matched by `cider-clojure-compilation-regexp',
and the suffix matched by `cider-module-info-regexp'."
  (thread-last err
               (replace-regexp-in-string cider-clojure-compilation-regexp
                                         "")
               (replace-regexp-in-string cider-module-info-regexp
                                         "")
               (string-trim)))