mirror of
https://github.com/Momoko-Ayase/Senbei.git
synced 2026-11-03 18:31:28 -05:00
fix: explain missing and mismatched companion payloads
This commit is contained in:
1 parent
dfff21604a
commit
f5896b3428
3 files changed
+309
-12
No files matched your search
@@ -91,6 +91,16 @@ impl std::fmt::Display for DescriptorTable {
|
||||
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
|
||||
#[non_exhaustive]
|
||||
pub enum UnpackError {
|
||||
#[error(
|
||||
"Companion missing? This loader expects a matching <input>._ payload. Keep it beside the input file (or add both files in the browser) and try again."
|
||||
)]
|
||||
CompanionMissing,
|
||||
|
||||
#[error(
|
||||
"Companion doesn't match: the supplied ._ payload is too short or its header differs from the loader's. Use the companion from the same build; either file may be damaged."
|
||||
)]
|
||||
CompanionMismatch,
|
||||
|
||||
#[error("input too short (need at least {required} bytes, got {actual})")]
|
||||
InputTooShort { actual: usize, required: usize },
|
||||
|
||||
|
||||
Reference in new issue
Block a user