Added fail case and calrified error messages in example.