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.