basho / cuttlefish

never lose your childlike sense of wonder baby cuttlefish, promise me?
Apache License 2.0
205 stars 124 forks source link

Recursive call to cuttlefish_generator:map/2 can't complain enough #145

Open joedevivo opened 10 years ago

joedevivo commented 10 years ago

In the solving of basho/riak_kv#883, cuttlefish is doing something it's not proud of: swallowing errors. All the glorious errors captured in the translation's call to cuttlefish_generator:map/2 are thrown away and just the generic error message "Error running recursive call to cuttlefish_generator:map/2" is returned.

if the cuttlefish module had a function that could take these errors and add them to the existing collection, that'd be great, but not necessary for 2.0.