It might depend on the error (eg, a network error doesn't necessitate updating the credentials)