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

Might be useful to do basic data checks and throw some neat ArgumentError #60

Open
Nakilon opened this issue Oct 24, 2022 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@Nakilon
Copy link

Nakilon commented Oct 24, 2022

Because if I for some reason pass an empty array to histogram the error is cryptic:

gems/2.4.0/gems/unicode_plot-0.0.5/lib/unicode_plot/histogram.rb:12:in `histogram': undefined method `-' for nil:NilClass (NoMethodError)
	from main.rb:85:in `block in <main>'
	from main.rb:84:in `zip'
	from main.rb:84:in `<main>'
@mrkn mrkn added the bug Something isn't working label Jan 15, 2023
@mrkn mrkn self-assigned this Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants