Skip to content

Commit 1348734

Browse files
committed
Remove unused parameters from cider-default-err-handler
1 parent 0e2899a commit 1348734

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cider-interaction.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ into a new error buffer."
13011301
;; after it has been handled, so it's fine to set it unconditionally here
13021302
(setq causes (cider--handle-stacktrace-response response causes))))))
13031303

1304-
(defun cider-default-err-handler (buffer ex root-ex session)
1304+
(defun cider-default-err-handler (session)
13051305
"Make an error handler for BUFFER, EX, ROOT-EX and SESSION.
13061306
This function determines how the error buffer is shown, and then delegates
13071307
the actual error content to the eval or op handler."

nrepl-client.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,8 @@ for functionality like pretty-printing won't clobber the values of *1, *2, etc."
812812
;; After being decoded, responses (aka, messages from the server) are dispatched
813813
;; to handlers. Handlers are constructed with `nrepl-make-response-handler'.
814814

815-
(defvar nrepl-err-handler 'cider-default-err-handler
815+
(defvar nrepl-err-handler '(lambda (_buffer _ex _root-ex session)
816+
(cider-default-err-handler session))
816817
"Evaluation error handler.")
817818

818819
(defvar-local nrepl--input-handler-queue (make-queue)

0 commit comments

Comments
 (0)