improve diagnostic output when encountering errors reading gzipped files