I am retrieving blog posts from /blog/ from the above directory using 'require 'blog/wp-blog-header.php';' Unfortunately, if there is an error -- say mysql connection -- the whole page that is retreiving those posts will put up a WordPress error message :"Error establishing data connection".
I would like to put a simple if statement around the require command that will make sure I don't try to retreive something that I can't. Or where do I modify the error message so that I can do this?