Add error for header type error
This commit is contained in:
parent
aae19221b6
commit
f2bd241a59
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ error_chain! {
|
|||
|
||||
errors {
|
||||
|
||||
HeaderTypeError(ty: &'static str, loc: &'static str) {
|
||||
description("Type error in header")
|
||||
display("Type error in header, expected {} at '{}', found other type", ty, loc)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue