Commit e009fd0ff5fb6ea0af288c51965d32e7bd415a60

Stefan Sperling 2019-05-11T14:30:02

identify an error source correctly

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/commit_graph.c b/lib/commit_graph.c
index 24bb6f0..cac2b8c 100644
--- a/lib/commit_graph.c
+++ b/lib/commit_graph.c
@@ -405,7 +405,7 @@ got_commit_graph_open(struct got_commit_graph **graph,
 	*graph = alloc_graph(path);
 	if (*graph == NULL) {
 		got_object_commit_close(commit);
-		return got_error_prefix_errno("got_object_commit_close");
+		return got_error_prefix_errno("alloc_graph");
 	}
 
 	if (first_parent_traversal)