Add context for unreadable rakepacks
This commit is contained in:
parent
d24083c755
commit
fda08b20b4
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue