Awe hun, accidents happen.
Has your vet given you anything to give him for pain relief? For the first few days you might just have to get up and put him on the tray every few hours.
Yes, the vet gave me an oral liquid to give him that's an anti inflammatory & pain relief combo which he has to have once a day.