Better message for supported types

Changed exception message in Reader/Archive Factory to list the
supported types.
This commit is contained in:
Adam Hathcock
2013-05-28 19:34:41 +01:00
parent 0ab103e1b1
commit 692bebf658
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ namespace SharpCompress.Archive
stream.Seek(0, SeekOrigin.Begin);
return GZipArchive.Open(stream, options);
}
throw new InvalidOperationException("Cannot determine compressed stream type.");
throw new InvalidOperationException("Cannot determine compressed stream type. Supported Archive Formats: Zip, GZip, Tar, Rar, 7Zip");
}
public static IArchive Create(ArchiveType type)

View File

@@ -74,7 +74,7 @@ namespace SharpCompress.Reader
return RarReader.Open(rewindableStream, options);
}
throw new InvalidOperationException("Cannot determine compressed stream type.");
throw new InvalidOperationException("Cannot determine compressed stream type. Supported Reader Formats: Zip, GZip, BZip2, Tar, Rar");
}
}
}