Improperly detects nil, as block
envygeeks opened this issue · 3 comments
envygeeks commented
Given
Kiba.run(Kiba.parse do
source MySource
destination MyDestination
transform nil
end)
Kiba will throw an error that "Class and block form cannot be used together at the moment", but nil is not a block, it should throw a unique error that it found neither a block, or transformer.
thbar commented
Thanks Jordon! I will improve that!
Envoyé de mon iPhone
… Le 19 avr. 2019 à 13:25, Jordon Bedwell ***@***.***> a écrit :
Given
Kiba.run(Kiba.parse do
source MySource
destination MyDestination
transform nil
end)
Kiba will throw an error that "Class and block form cannot be used together at the moment", but nil is not a block, it should throw a unique error that it found neither a block, or transformer.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
thbar commented
@envygeeks thanks again for the input ; I fixed this in #73 (which will be release into kiba 2.5), and will work at improving parse-time error messages in the future.
Many thanks!
envygeeks commented
Thanks!