Improve error messages by using pr-str instead of str when printing objects

Description

Many error messages from ClojureScript include the invalid argument like this:

If x is nil, then the error message produces is "Doesn't support name: " which is a bit mystifying to debug. If x was wrapped with pr-str then the error message would be the much more understandable: "Doesn't support name: nil".

If there's interest in this, then I can prepare a patch which wraps these kinds of errors with pr-str.

Environment

None

Assignee

Daniel Compton

Reporter

Daniel Compton

Labels

Approval

None

Patch

Code

Priority

Minor
Configure