Added convenience function getFailureMessages