diff --git a/src/SharpCompress/Archives/Tar/TarArchive.cs b/src/SharpCompress/Archives/Tar/TarArchive.cs index de37df89..fdf8cd42 100644 --- a/src/SharpCompress/Archives/Tar/TarArchive.cs +++ b/src/SharpCompress/Archives/Tar/TarArchive.cs @@ -189,7 +189,9 @@ var header in TarHeaderFactory.ReadHeader( CompressionType.None ); } - } else { + } + else + { throw new IncompleteArchiveException("Failed to read TAR header"); } }