Commit Diff


commit - 370f10653490c6d8f3e587869c96c100535edc9f
commit + b7c2acffeac8f0e1dff53ca2a94dccb2bf8b2b1b
blob - d4752ffbbc8e2e4f0c5be0615e93a70e3625ff54
blob + 80f4c2ec4a2985d8604998f23f8761ab601b2514
--- lib/diff.c
+++ lib/diff.c
@@ -509,7 +509,7 @@ diff_modified_blob(struct got_object_id *id1, struct g
 	if (err)
 		goto done;
 	if (obj2->type != GOT_OBJ_TYPE_BLOB) {
-		err = got_error(GOT_ERR_BAD_OBJ_DATA);
+		err = got_error(GOT_ERR_OBJ_TYPE);
 		goto done;
 	}