Proper error reporting