error reporting code shot as requested