Error when clicking an extension

When I click one of my extensions in the Extensions module a red box appears with the text “Error” in it.
Clicking on it does not result in additional information.
How do I find out what is wrong?