Break: add initial meta.json support

This commit is contained in:
eigenein committed 2023-04-24 22:38:23 +02:00
1 parent 903cd00f32
commit 14148c7410
10 files changed
+71 -19

No files matched your search

+7 -7
View File
@@ -2,18 +2,18 @@ use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("failed to open the ZIP-archive")]
#[error("failed to open the replay as a ZIP-archive")]
OpenArchiveFailed(#[source] zip::result::ZipError),
#[error("failed to open the battle results entry in the replay archive")]
OpenBattleResultsFailed(#[source] zip::result::ZipError),
#[error("failed to open the entry in the replay archive")]
OpenEntryFailed(#[source] zip::result::ZipError),
#[error("failed to read the archive entry")]
ReadEntryFailed(#[source] std::io::Error),
#[error("failed to decode")]
#[error("failed to decode the Protocol Buffers encoded data")]
DecodeFailed(#[source] prost::DecodeError),
#[error("failed to un-pickle")]
UnpickleFailed(#[source] serde_pickle::Error),
#[error("failed to decode JSON")]
JsonDecodeFailed(#[source] serde_json::Error),
}