This isn't going to help when you need to diagnose a problem. Why not use the error.message in this case?