ToxicFrog / bltool

A tool for command line interaction with backloggery.com
Apache License 2.0
78 stars 9 forks source link

`--from text` copes poorly with bad input #8

Open ToxicFrog opened 10 years ago

ToxicFrog commented 10 years ago

If a line is damaged (for example, because braindead Notepad inserts a BOM for UTF8 text), it will merrily read the entire file and then try to output garbage. If your output is text or EDN it means you get a nonsensical record. If your output is backloggery it means it tries to pass an empty body to the HTTP library and then crashes.

It should throw properly when it encounters a malformed record.