Merge pull request #6305 from zawata/fix_refdb_error_msg refs: fix missing error message
diff --git a/src/libgit2/refdb_fs.c b/src/libgit2/refdb_fs.c
index ef85016..0f49b16 100644
--- a/src/libgit2/refdb_fs.c
+++ b/src/libgit2/refdb_fs.c
@@ -740,7 +740,7 @@ static int packed_lookup(
return 0;
}
}
- return GIT_ENOTFOUND;
+ return ref_error_notfound(ref_name);
parse_failed:
git_error_set(GIT_ERROR_REFERENCE, "corrupted packed references file");