Function: nrepl--clojure-only-error
nrepl--clojure-only-error is a byte-compiled function defined in
nrepl-client.el.
Signature
(nrepl--clojure-only-error RESPONSE)
Documentation
Return RESPONSE's Clojure-only message, or nil.
Non-nil when RESPONSE's status reports the op as clojure-only - i.e. the
server (cider-nrepl) declined to run it because a ClojureScript REPL is
active (see clojure-emacs/cider#2198). Falls back to a generic message when
the server didn't supply one.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/nrepl-client.el
(defun nrepl--clojure-only-error (response)
"Return RESPONSE's Clojure-only message, or nil.
Non-nil when RESPONSE's status reports the op as `clojure-only' - i.e. the
server (cider-nrepl) declined to run it because a ClojureScript REPL is
active (see clojure-emacs/cider#2198). Falls back to a generic message when
the server didn't supply one."
(when (member "clojure-only" (nrepl-dict-get response "status"))
(string-trim (or (nrepl-dict-get response "err")
"This operation isn't available in a ClojureScript REPL."))))