This is a safety feature in case the hot or neutral wires somehow come in contact with metal parts. Of the 2 only one is hot and its probably the black.
Reversed Polarity At Electrical Receptacles Definition Of
Ground wire is hot. However the neutral and ground wires serve two distinct purposes. Sometimes the error is up or downstream of the outlet which requires more work to detect. The neutral wire forms a part of the live circuit along with the hot wire. But the first rule is there are no rules. By convention the white wire is neutral the black wire is hot and a green or bare wire is ground. In breaker there is a shared bar with both ground and neutral wires connected.
Fixing a hot wire and a ground wire that are reversed is as easy as unscrewing and switching the wires on the receptacle and screwing them tight again. Disconnect the white and black wires from each other and from the ground wire on the outlet. In contrast the ground wire is connected to any metal parts in an appliance such as a microwave oven or coffee pot. Like the neutral wire the ground wire is also connected to an earth ground. Cap the black wire off and cap the white wire off seperately. So if you see lots of different colors in an electrical box you probably need to call an electrician.
You should not have a black ground wire or a white ground wire. Inside the can lights there is quick connectors that i cut and used wire nuts but i have rechecked this several times and everything seems correct. Diagnose the error visually by looking behind the outlet or by inserting a three light voltage tester into the outlet and using it. But if you see three or four colors you can probably figure it out. Ground wire is hot drop ceiling carrying current.