Idiom
caught with your pants downcaught with (your) pants down
in a situation that embarrasses you.My job was to get as much information as possible so that my boss would not be caught with her pants down.
Usage notes: often said about situations you are not prepared for