use super::RecordKind;
use crate::reader;
#[derive(Debug, thiserror::Error)]
pub enum ParseError {
#[error("failed to read record: {}", _0)]
Read(#[from] reader::Error),
#[error("unexpected record found `{}`, expected `{}`", found, expected)]
UnexpectedRecord {
found: RecordKind,
expected: RecordKind,
},
#[error("unexpected end of file")]
UnexpectedEof,
}
#[derive(Debug, Copy, Clone, Eq, PartialEq, thiserror::Error)]
pub enum MergeError {
#[error("unmatched start line of function")]
UnmatchedFunctionLine,
#[error("unmatched checksum")]
UnmatchedChecksum,
}