There seem to be error cases where details property is set in the error object, but set to undefined. This makes the SDKError constructor fail on
|
if ( "message" in error.details ) |
with
TypeError: Cannot use 'in' operator to search for 'message' in undefined