Updating query failure to check for other error messages in document.