The error messages are stored in the *Messages*
buffer. There is a command to open it: C-h e
. You can also just click on the echo area in the bottom of the window.
By default, the last 1000 lines of messages are saved. You can change this by setting the variable message-log-max
.