This mod will tell you all the nearby mobs when you get the following message trying to sleep: