Fix: Header field name was wrong
This commit is contained in:
parent
295374e1bd
commit
cdf90e427c
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> {
|
||||
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(_)) => Err(REK::HeaderTypeError.into_error()),
|
||||
Ok(None) => Err(REK::HeaderFieldMissingError.into_error()),
|
||||
|
|
Loading…
Reference in a new issue