Added error report if there was an error reading the header