Welcome! Please see the About page for a little more info on how this works.

+2 votes
in Errors by


% cat src/dupes.clj
(ns dupes

(defn -main
  (let [x 1 y 1]
    (pr-str "this is not the error you're looking for")
    ;; This is a lengthy, multi-line comment. It serves no other purpose than to put
    ;; distance between the last line to emit a line number and the line that throws the
    ;; exception
    #{x y}))

% clj -M -m dupes
Execution error (IllegalArgumentException) at dupes/-main (dupes.clj:7).
Duplicate key: 1

Reports error at line 7, but should be line 11.

1 Answer

0 votes