said to mean that something happens that someone is not prepared for and that reveals an embarrassing or shocking fact about them. In British English, you can also say that someone is caught with their trousers down.
In 1991, the Department of Transport was caught with its pants down and took sevenmonths to produce the document needed to change legislation.