Better error message for mock.