time machine problem

Time machine was throwing the following error:“the backup disk image could not be created” what I did to solve this was:add a “Computer Name” in preferences menu into “Sharing”