add more information to error reporting.