If the command failed with a non-zero exit status there might be an error message on stderr. Append the first line to the error message to ease the search for its cause.
The changes in #1848 resulted in lines being dropped if they had an empty tag. Let's allow all lines that have empty or missing tags!