improve exception error reporting