-
Notifications
You must be signed in to change notification settings - Fork 9
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
passing tuples to office conversion doesn't work #11
Comments
Seems logic, because I pass an incorrect fileName . But I thinks the error throwed is not really the real error, and can hide some others error Example, if two strings are passed, did you set the filename to Else, because it seems that passing two string, and the first is not a fileName, is not supported, maybe throw an error before the duplicate check |
Yeah, there is a check of first argument, if it is filename, here. Filename should match regular expression But I agree, that error shown points to different direction. I'll check it, thank you! |
Add filename check errors, fix issue #11
I've added few more source checks, published version 0.6.0 There shouldn't be any breaking changes, but it turned out there are number of commits since last release, so I decided to bump minor version, just in case :) New checks should catch cases like: ['aaaaa', 'test']
{ aaaaa: 'test' } and nested too: [['aaaaa', 'test']]
[{ aaaaa: 'test' }]
[['aaaaa', 'test'], { aaaaa: 'test' }] (Error will be thrown only on first item) |
@thib3113 do you think this is enough? I thought about adding link to Source documentation in error message, but decided against, this looks like React-like overkill to me :) |
yes I think . Next time I got this error, I will faster know I passed an incorrect filename xD, insteed of searching why my file is named index.html ;) . thank you |
Cool :) Closing this then |
On lib version
0.5.0
.I use function like that :
if I pass a tuples, for example :
I got an error :
the problem is :
here
the variable
tuples
contain an array :so, here , we found some duplicates .
For informations, here,
The text was updated successfully, but these errors were encountered: