Added more debugging information to an error message