updated error message
updated error reporting example