Update documentation to include full example with error message