Gives error on invalid format.
Merge pull request #51 from sudorandom/format_error

Gives error on invalid format