You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logging error objects is a super normal thing to do both in production code and in exploring the API. With recent StripeError changes StripeError.type is defined as a getter which means it's not enumerable and doesn't show up in logging output. That makes the output rather confusing.
There might be a way to make the getter enumerable so it shows up in logging output but just a regular old property on the object is probably simpler.
The text was updated successfully, but these errors were encountered:
Hello,
Logging error objects is a super normal thing to do both in production code and in exploring the API. With recent StripeError changes
StripeError.type
is defined as a getter which means it's not enumerable and doesn't show up in logging output. That makes the output rather confusing.There might be a way to make the getter enumerable so it shows up in logging output but just a regular old property on the object is probably simpler.
The text was updated successfully, but these errors were encountered: