Commit Diff


commit - 0553429dd6a160e5615f7c7db34647a43c8ba157
commit + 2c2d5c5f4cce08cb69d03aea1a1c747fd27f9e39
blob - 25d83c1f89c10d05db812a416a0a4d238802b4e3
blob + a309f6f15fc9d270685615ae0e7910508bb24085
--- lib/blame.c
+++ lib/blame.c
@@ -133,7 +133,7 @@ blame_commit(struct got_blame *blame, struct got_objec
 		goto done;
 
 	if (obj->type != GOT_OBJ_TYPE_BLOB) {
-		err = got_error(GOT_ERR_OBJ_TYPE);
+		err = got_error_path(path, GOT_ERR_OBJ_TYPE);
 		goto done;
 	}
 
@@ -205,7 +205,7 @@ blame_open(struct got_blame **blamep, const char *path
 		goto done;
 
 	if (obj->type != GOT_OBJ_TYPE_BLOB) {
-		err = got_error(GOT_ERR_OBJ_TYPE);
+		err = got_error_path(path, GOT_ERR_OBJ_TYPE);
 		goto done;
 	}