Commit Diff


commit - ddbb3188dfcc3d488f561df80ff17b4783b00dd1
commit + aec950736a0f20c8417ce255ac1b937f67e20a5c
blob - 50e27eac588c197ea4e8e49c301c37a2bb14da90
blob + 483de67587c2d77f3803f7fcd4a4efed723fbacc
--- 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;
 	}