Commit 86d8a25a424bf9dff8061b9a5cf9c76f0a97327e

Stefan Sperling 2020-04-19T08:57:07

show bad ID in "object not found" error from got_repo_match_object_id_prefix()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/repository.c b/lib/repository.c
index bd2ded9..82d26fe 100644
--- a/lib/repository.c
+++ b/lib/repository.c
@@ -1325,7 +1325,7 @@ done:
 		free(*id);
 		*id = NULL;
 	} else if (*id == NULL)
-		err = got_error(GOT_ERR_NO_OBJ);
+		err = got_error_path(id_str_prefix, GOT_ERR_NO_OBJ);
 
 	return err;
 }