ndmitchell / neil

General tools for Neil
Other
38 stars 16 forks source link

grab should warn on missing fields #27

Closed tomjaguarpaw closed 8 years ago

tomjaguarpaw commented 8 years ago

If a field is missing, grab should explicitly say so. The error

neil: : openFile: does not exist (No such file or directory)

when grab looks for license-file but the field is actually licence-File is really confusing.

https://github.com/ndmitchell/neil/blob/master/src/Cabal.hs#L225

tomjaguarpaw commented 8 years ago

Other discussion https://github.com/ndmitchell/neil/issues/26#issuecomment-222297722

ndmitchell commented 8 years ago

I just made a failing to read license-file pretend its "", and then all the other checks move into the right order and fire properly.