Add example to show error reporting