If you make a cock-up of something, you ruin it by doing something wrong. He was in danger of making a real cock-up of this. something that has been spoiled by someone's stupid mistake or by being done badly
If you cock something up, you ruin it by doing something wrong. `Seems like I've cocked it up,' Egan said They've cocked up the address. see also cock-up