add more detail to error message