Merge pull request #533 from matthiasbeyer/libimagref/fix-header-field-name
Fix: Header field name was wrong
This commit is contained in:
commit
6a77923058
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ impl<'a> Ref<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn read_reference(fle: &FileLockEntry<'a>) -> Result<PathBuf> {
|
fn read_reference(fle: &FileLockEntry<'a>) -> Result<PathBuf> {
|
||||||
match fle.get_header().read("ref.reference") {
|
match fle.get_header().read("ref.path") {
|
||||||
Ok(Some(Value::String(s))) => Ok(PathBuf::from(s)),
|
Ok(Some(Value::String(s))) => Ok(PathBuf::from(s)),
|
||||||
Ok(Some(_)) => Err(REK::HeaderTypeError.into_error()),
|
Ok(Some(_)) => Err(REK::HeaderTypeError.into_error()),
|
||||||
Ok(None) => Err(REK::HeaderFieldMissingError.into_error()),
|
Ok(None) => Err(REK::HeaderFieldMissingError.into_error()),
|
||||||
|
|
Loading…
Reference in a new issue