Updated error reporting framework