Display more descriptive error message when trying to use reader conditionals in a non-cljc file

Description

I spent a few puzzled minutes trying to understand the following message from the Clojure compiler:

Eventually I realised it was because I was trying to use reader conditionals in a .clj file that I hadn't renamed to cljc. I think it would be really helpful for people working in mixed clj and cljc codebases to have this error message extended to something like:

"Conditional read not allowed because file does not have extension .cljc"

Environment

None

Status

Assignee

Unassigned

Reporter

Daniel Compton

Labels

Approval

None

Patch

None

Affects versions

Release 1.7

Priority

Minor
Configure