Fix error message

This commit is contained in:
Eelco Dolstra 2024-07-26 19:06:49 +02:00
parent c274e005b6
commit d9ba2a1634

View File

@ -131,7 +131,7 @@ T peelObject(git_repository * repo, git_object * obj, git_object_t type)
T obj2; T obj2;
if (git_object_peel((git_object * *) (typename T::pointer *) Setter(obj2), obj, type)) { if (git_object_peel((git_object * *) (typename T::pointer *) Setter(obj2), obj, type)) {
auto err = git_error_last(); auto err = git_error_last();
throw Error("peeling Git object '%s': %s", git_object_id(obj), err->message); throw Error("peeling Git object '%s': %s", *git_object_id(obj), err->message);
} }
return obj2; return obj2;
} }