Better error message for credential caching