In stead of leaving the overlay for searching the error message and then go back in, you could also type an "!" to go temporarily to the main ">" prompt.
search for the error like mentioned by ccastillo above. If you're finished with this error message type a single "*" to go back and continue in this overlay, at the prompt where you typed the "!".