Error reporting example