Error message could be improved when mistyping mvn coordinate

Description

When running clojure with a mistyped maven coordinate:

an error message is printed that could be arguably improved:

Another common mistake (at least for me personally):

Arguably the error message could suggest to use :mvn/version if the string starts with a number (and not https for git deps).

Environment

None

Activity

Show:
Alex Miller
September 9, 2020, 9:13 PM

I forgot to link this up in the changelog, but I addressed this a while back (tools.deps.alpha 0.8.695). It now says:

Michiel Borkent
September 9, 2020, 9:20 PM

Thanks.

What about the other case mentioned in this issue?

It seems clojure is trying to show some non-existing coordinate type as whitespace? Instead it could say: I was expecting a map instead of a string, or something else more informative.

Alex Miller
September 9, 2020, 10:06 PM

Ah! That's why I didn't close it.

For next release I've updated it as such:

Fixed

Assignee

Unassigned

Reporter

Michiel Borkent

Labels

None

Approval

None

Patch

None

Priority

Minor
Configure