thbar/kiba

Improperly detects nil, as block

envygeeks opened this issue · 3 comments

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
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!

Thanks!