-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Labels
Description
Is your feature request related to a problem? Please describe.
It took me forever to realize I hadn't filled ou the qty field in my CSV, so it was returning a zero-sized dataframe. I wish Squib had warned me of this.
Describe the solution you'd like
- When
Squib::Deck.new(cards: 0)happens, send a warning that it's a zero-sized deck. Make it so you can suppress that warning in the config file if you want, but it's on by default. Also, if it's 0, don't execute the body either. - If we're doing quantity explosion for
csvandxlsx, check that there's at least one number greater than 0 in the entire data. If not, raise an error with a helpful message. - If
csvandxlsxis about to return a zero-sized data frame, print a warning. Make it the same warning setting as above in the config file.