Found this awesome tip on Vadim's blog this morning. All you need to do when you want to copy the text inside a MessageBox, is make sure it has focus and press the control+c keys together (normal copy shortcut).
When you paste the text from the clipboard, you get something like this:
---------------------------
curl error
---------------------------
Empty reply from server
---------------------------
OK
---------------------------
So simple, don't know why I never bothered trying it, no more rewriting an error message in Google!. Here is the link to the original article.