summaryrefslogtreecommitdiffstats
path: root/lib/entry
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-02-13 22:36:40 +0100
committerMatthias Beyer <mail@beyermatthias.de>2018-02-19 12:14:32 +0100
commited69fd4b3599a5a939904d64b4dc29ba27eadb06 (patch)
tree748afb39c04846f6dbeb5b96ea19193debd67863 /lib/entry
parent81a8826740c9e3a52356d1ecdfe9cc44c9f7a2da (diff)
Enrich error types
Diffstat (limited to 'lib/entry')
-rw-r--r--lib/entry/libimagentryref/src/error.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/entry/libimagentryref/src/error.rs b/lib/entry/libimagentryref/src/error.rs
index 1a76aea0..98fd735e 100644
--- a/lib/entry/libimagentryref/src/error.rs
+++ b/lib/entry/libimagentryref/src/error.rs
@@ -36,14 +36,14 @@ error_chain! {
}
errors {
- HeaderTypeError {
+ HeaderTypeError(field: &'static str, expectedtype: &'static str) {
description("Header type error")
- display("Header type error")
+ display("Header type error: '{}' should be {}", field, expectedtype)
}
- HeaderFieldMissingError {
+ HeaderFieldMissingError(field: &'static str) {
description("Header field missing error")
- display("Header field missing error")
+ display("Header field missing: {}", field)
}
HeaderFieldWriteError {