Add context for unreadable rakepacks

This commit is contained in:
Olivier 'reivilibre' 2022-06-26 21:32:23 +01:00
parent d24083c755
commit fda08b20b4
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ pub async fn main() -> anyhow::Result<()> {
let decompressor = zstd::stream::Decoder::new(file)?;
// TODO the decompressor has a buffer already, but we need this to see the end
let mut buf_reader = BufReader::new(decompressor);
let schema: String = serde_bare::from_reader(&mut buf_reader)?;
let schema: String =
serde_bare::from_reader(&mut buf_reader).context("failed to read schema ver")?;
match schema.as_ref() {
SCHEMA_RAKED_PAGES => {