@@ -883,13 +883,14 @@ and the suffix matched by `cider-module-info-regexp'."
883
883
(defun cider--maybe-display-error-as-overlay (phase err end )
884
884
" Possibly display ERR as an overlay honoring END,
885
885
depending on the PHASE."
886
- (when (or
887
- ; ; if we won't show *cider-error*, because of configuration, the overlay is adequate because it compensates for the lack of info in a compact manner:
888
- (not cider-show-error-buffer)
889
- (not (cider-connection-has-capability-p 'jvm-compilation-errors ))
890
- ; ; if we won't show *cider-error*, because of an ignored phase, the overlay is adequate:
891
- (and cider-show-error-buffer
892
- (member phase (cider-clojure-compilation-error-phases))))
886
+ (when (and phase ; ; if there's no phase, `err' belongs to stderr, unrelated to exception handling (bug #3587)
887
+ (or
888
+ ; ; if we won't show *cider-error*, because of configuration, the overlay is adequate because it compensates for the lack of info in a compact manner:
889
+ (not cider-show-error-buffer)
890
+ (not (cider-connection-has-capability-p 'jvm-compilation-errors ))
891
+ ; ; if we won't show *cider-error*, because of an ignored phase, the overlay is adequate:
892
+ (and cider-show-error-buffer
893
+ (member phase (cider-clojure-compilation-error-phases)))))
893
894
; ; Display errors as temporary overlays
894
895
(let ((cider-result-use-clojure-font-lock nil )
895
896
(trimmed-err (funcall cider-inline-error-message-function err)))
0 commit comments