Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constructor Diagnostics Need Improvement #7

Open
jcburley opened this issue Feb 2, 2019 · 0 comments
Open

Constructor Diagnostics Need Improvement #7

jcburley opened this issue Feb 2, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@jcburley
Copy link
Owner

jcburley commented Feb 2, 2019

Given e.g. (go.std.os/LinkError. ["one" "two"]), this diagnostic seems insufficient:

<repl>:1:1: Eval error: Index 2 is out of bounds [0..1]

It should specify how many elements are required in the vector.

Further, a type mismatch in one of the elements fails to specify which one has the problem:

user=> (go.std.os/LinkError. ["one" "two" :hey "there"])
<repl>:6:1: Eval error: Expected String, got Keyword
user=>

A suffix such as (element 2) would help.

@jcburley jcburley added the enhancement New feature or request label Feb 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant