Improved error reporting during update stats call