Better error message for malformed lines (see #1)