improve the error report