caught short
Synonym of caught short (“needing to use the toilet where no facilities are available”).